Changeset 43256


Ignore:
Timestamp:
01/21/19 17:02:04 (5 years ago)
Author:
obi
Message:

fix oebuild

Location:
titan/oealliance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/oealliance/sbin/update.sh

    r43253 r43256  
    396396                                if [ -e /etc/.oebuild ];then
    397397                                        imagefs=$(getboxbranding imagefs)
     398#                                       tmp=/tmp
     399                                        tmp=/tmp/ramfs
     400                                        mkdir $tmp
     401                                        mount -t ramfs ramfs $tmp                               
     402
    398403                                        if [ "$imagefs" = "ubinfi" ];then
    399404                                                infobox -pos -1 75% 10065 "UPDATENFI" "            Schreibe Daten            " &
    400                                                 mkdir /tmp/ramfs
    401                                                 mount -t ramfs ramfs /tmp/ramfs                         
    402                                                 cp "$file" /tmp/ramfs/flash.nfi
     405#                                               mkdir /tmp/ramfs
     406#                                               mount -t ramfs ramfs /tmp/ramfs                         
     407                                                cp "$file" $tmp/flash.nfi
    403408                                                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
    405422                                        else
    406                                                 tmp=/tmp
     423#                                               tmp=/tmp
    407424                                                showtime=33
    408425                                                if [ "$board" = "hd51" ];then showtime=40 ;fi
    409426                                                infobox -pos -1 75% 100$showtime "UPDATEUSB" "            Entpacke Image            " &
    410427
    411                                                 time unzip "$file" -x $board/*.img -x usb_update.bin -d /tmp
     428                                                time unzip "$file" -x $imagedir/*.img -x $board/*.img -x usb_update.bin -d $tmp
    412429                                                rm -f "$file"
    413430
  • titan/oealliance/usr/bin/titan.sh

    r43251 r43256  
    1212        mkdir /mnt/swapextensions
    1313        mkdir /mnt/bin
     14        mkdir /mnt/tpk
    1415        sleep 10
    1516        rm -r /var/etc/.erasemtd
Note: See TracChangeset for help on using the changeset viewer.