source: ipk/source.sh4/titansettings_matze70neueDesign_sat19_1_0/CONTROL/postrm @ 21833

Last change on this file since 21833 was 21833, checked in by obi, 7 years ago

update settings to /mnt/settings

  • Property svn:executable set to *
File size: 936 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.set
3
4echo "remove /mnt/settings/bouquets.*"
5rm -f /mnt/settings/bouquets*
6rm -f /mnt/settings/channel
7rm -f /mnt/settings/provider
8rm -f /mnt/settings/transponder
9rm -f /mnt/settings/satellites
10rm -f /mnt/settings/epgchannel
11
12echo "successfully removed"
13if [ `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
17else
18        echo "syncing disk"
19        sync
20fi
21
22echo "restore default settings"
23cp -a /etc/titan.restore/etc/titan/bouquets.* /mnt/settings
24cp -a /etc/titan.restore/etc/titan/channel /mnt/settings
25cp -a /etc/titan.restore/etc/titan/provider /mnt/settings
26cp -a /etc/titan.restore/etc/titan/satellites /mnt/settings
27cp -a /etc/titan.restore/etc/titan/transponder /mnt/settings
28
29touch /tmp/.tpk_needs_reboot
30exit 0
Note: See TracBrowser for help on using the repository browser.