Changeset 43258
- Timestamp:
- 01/21/19 18:51:02 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/oealliance/sbin/update.sh
r43256 r43258 396 396 if [ -e /etc/.oebuild ];then 397 397 imagefs=$(getboxbranding imagefs) 398 # tmp=/tmp 398 imagedir=$(getboxbranding imagedir) 399 mtdrootfs=$(getboxbranding mtdrootfs) 400 mtdkernel=$(getboxbranding mtdkernel) 399 401 tmp=/tmp/ramfs 400 402 mkdir $tmp 401 403 mount -t ramfs ramfs $tmp 404 if [ -e /media/hdd/backup ];then 405 FLASHTIME=`date "+%Y%m%d%H%M"` 406 BACKUPDIR=/media/hdd/backup/mnt_${FLASHTIME} 407 cp -a /mnt $BACKUPDIR 408 echo "$BACKUPDIR" > /media/hdd/backup/.oebuildbackup 409 sync 410 fi 402 411 403 412 if [ "$imagefs" = "ubinfi" ];then 404 infobox -pos -1 75% 10065 "UPDATENFI" " Schreibe Daten " & 405 # mkdir /tmp/ramfs 406 # mount -t ramfs ramfs /tmp/ramfs 413 showtime=92 414 if [ "$board" = "dm7020hd" ];then showtime=92 ;fi 407 415 cp "$file" $tmp/flash.nfi 408 416 rm "$file" 409 # nfiwrite -l -b -r -s -f -v $tmp/flash.nfi410 # exit411 412 #/usr/sbin/nfiwrite -l -b -r -s -f "/media/hdd/backup/openATV-exp-dm7020hdv2-2019-01-21-14-40.nfi"413 417 echo "#!/bin/sh -x" > /tmp/dflash.sh 414 418 echo "init 4" >> /tmp/dflash.sh 419 echo "infobox -pos -1 75% 100$showtime 'UPDATENFI' ' Schreibe Daten ' &" >> /tmp/dflash.sh 415 420 echo "sleep 3" >> /tmp/dflash.sh 416 421 echo "echo 50 > /proc/progress" >> /tmp/dflash.sh … … 421 426 exit 422 427 else 423 # tmp=/tmp424 428 showtime=33 425 429 if [ "$board" = "hd51" ];then showtime=40 ;fi 426 430 infobox -pos -1 75% 100$showtime "UPDATEUSB" " Entpacke Image " & 427 428 431 time unzip "$file" -x $imagedir/*.img -x $board/*.img -x usb_update.bin -d $tmp 429 432 rm -f "$file" 430 431 433 sync 432 433 imagedir=$(getboxbranding imagedir)434 mtdrootfs=$(getboxbranding mtdrootfs)435 mtdkernel=$(getboxbranding mtdkernel)436 434 killall infobox 437 435 ofgwrite -r$mtdrootfs -k$mtdkernel $tmp/$imagedir
Note: See TracChangeset
for help on using the changeset viewer.