Changeset 43256
- Timestamp:
- 01/21/19 17:02:04 (5 years ago)
- Location:
- titan/oealliance
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/oealliance/sbin/update.sh
r43253 r43256 396 396 if [ -e /etc/.oebuild ];then 397 397 imagefs=$(getboxbranding imagefs) 398 # tmp=/tmp 399 tmp=/tmp/ramfs 400 mkdir $tmp 401 mount -t ramfs ramfs $tmp 402 398 403 if [ "$imagefs" = "ubinfi" ];then 399 404 infobox -pos -1 75% 10065 "UPDATENFI" " Schreibe Daten " & 400 mkdir /tmp/ramfs401 mount -t ramfs ramfs /tmp/ramfs402 cp "$file" /tmp/ramfs/flash.nfi405 # mkdir /tmp/ramfs 406 # mount -t ramfs ramfs /tmp/ramfs 407 cp "$file" $tmp/flash.nfi 403 408 rm "$file" 404 nfiwrite -l -b -r -s -f -v /tmp/ramfs/flash.nfi 409 # nfiwrite -l -b -r -s -f -v $tmp/flash.nfi 410 # exit 411 412 #/usr/sbin/nfiwrite -l -b -r -s -f "/media/hdd/backup/openATV-exp-dm7020hdv2-2019-01-21-14-40.nfi" 413 echo "#!/bin/sh -x" > /tmp/dflash.sh 414 echo "init 4" >> /tmp/dflash.sh 415 echo "sleep 3" >> /tmp/dflash.sh 416 echo "echo 50 > /proc/progress" >> /tmp/dflash.sh 417 echo "/usr/sbin/nfiwrite -l -b -r -s -f $tmp/flash.nfi" >> /tmp/dflash.sh 418 echo "exit 0" >> /tmp/dflash.sh 419 chmod 755 /tmp/dflash.sh 420 start-stop-daemon -S -b -n dflash.sh -x /tmp/dflash.sh 421 exit 405 422 else 406 tmp=/tmp423 # tmp=/tmp 407 424 showtime=33 408 425 if [ "$board" = "hd51" ];then showtime=40 ;fi 409 426 infobox -pos -1 75% 100$showtime "UPDATEUSB" " Entpacke Image " & 410 427 411 time unzip "$file" -x $ board/*.img -x usb_update.bin -d /tmp428 time unzip "$file" -x $imagedir/*.img -x $board/*.img -x usb_update.bin -d $tmp 412 429 rm -f "$file" 413 430 -
titan/oealliance/usr/bin/titan.sh
r43251 r43256 12 12 mkdir /mnt/swapextensions 13 13 mkdir /mnt/bin 14 mkdir /mnt/tpk 14 15 sleep 10 15 16 rm -r /var/etc/.erasemtd
Note: See TracChangeset
for help on using the changeset viewer.