Changeset 43341


Ignore:
Timestamp:
01/28/19 18:28:51 (5 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/oealliance/usr/bin/titan.sh

    r43321 r43341  
    1515
    1616        if [ -e /var/etc/.erasemtd ] || [ ! -e /mnt/swapextensions ]; then
     17                if [ -e /var/etc/.backupmtd ]; then
     18                        mkdir /tmp/backupmtd
     19                        cp -a /mnt/settings /tmp/backupmtd
     20                        cp -a /mnt/config /tmp/backupmtd
     21                        cp -a /mnt/network /tmp/backupmtd
     22                        cp -a /mnt/script /tmp/backupmtd
     23                        mkdir /tmp/backupmtd/swapextensions
     24                        cp -a /mnt/swapextensions/player /tmp/backupmtd/swapextensions
     25#                       backuptpk
     26                fi
     27
    1728                if [ -e /media/hdd/.update/.last ];then
    1829                        BACKUPDIR=/media/hdd/.update
     
    4455                        mkdir /mnt/tpk
    4556                        sleep 10
     57
     58                        if [ -e /var/etc/.backupmtd ]; then
     59#                               restoretpk
     60
     61                                rm -rf /mnt/settings
     62                                rm -rf /mnt/config
     63                                rm -rf /mnt/network
     64                                rm -rf /mnt/script
     65                                rm -rf /mnt/swapextensions/player
     66                                cp -a /tmp/backupmtd/* /mnt
     67#                       else
     68#                               mkdir /mnt/tpk
     69#                               mkdir /mnt/script
     70#                               reset.sh
     71                        fi
     72
    4673                        rm -r /var/etc/.erasemtd
    4774                        rm -r /var/etc/.backupmtd
Note: See TracChangeset for help on using the changeset viewer.