|
Last change
on this file since 21833 was 21833, checked in by obi, 13 years ago |
|
update settings to /mnt/settings
|
-
Property svn:executable
set to
*
|
|
File size:
936 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | TMP=/tmp/.set
|
|---|
| 3 |
|
|---|
| 4 | echo "remove /mnt/settings/bouquets.*"
|
|---|
| 5 | rm -f /mnt/settings/bouquets*
|
|---|
| 6 | rm -f /mnt/settings/channel
|
|---|
| 7 | rm -f /mnt/settings/provider
|
|---|
| 8 | rm -f /mnt/settings/transponder
|
|---|
| 9 | rm -f /mnt/settings/satellites
|
|---|
| 10 | rm -f /mnt/settings/epgchannel
|
|---|
| 11 |
|
|---|
| 12 | echo "successfully removed"
|
|---|
| 13 | if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
|
|---|
| 14 | SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
|
|---|
| 15 | FREE=`expr $SPACE - 100`
|
|---|
| 16 | echo new freespace size $FREE kb
|
|---|
| 17 | else
|
|---|
| 18 | echo "syncing disk"
|
|---|
| 19 | sync
|
|---|
| 20 | fi
|
|---|
| 21 |
|
|---|
| 22 | echo "restore default settings"
|
|---|
| 23 | cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings
|
|---|
| 24 | cp -a /etc/titan.restore/etc/titan/channel /mnt/settings
|
|---|
| 25 | cp -a /etc/titan.restore/etc/titan/provider /mnt/settings
|
|---|
| 26 | cp -a /etc/titan.restore/etc/titan/satellites /mnt/settings
|
|---|
| 27 | cp -a /etc/titan.restore/etc/titan/transponder /mnt/settings
|
|---|
| 28 |
|
|---|
| 29 | touch /tmp/.tpk_needs_reboot
|
|---|
| 30 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.