source: ipk/source.sh4/titansettings_default_sat_1_0/CONTROL/postrm@ 12238

Last change on this file since 12238 was 12238, checked in by obi, 14 years ago

[ipk] add titan default settings

  • Property svn:executable set to *
File size: 851 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.set
3
4echo "remove /var/etc/titan/bouquets.*"
5rm -rf /var/etc/titan/bouquets.* > /dev/null 2>&1
6echo "remove /var/etc/titan/channel"
7rm -rf /var/etc/titan/channel > /dev/null 2>&1
8echo "remove /var/etc/titan/provider"
9rm -rf /var/etc/titan/provider > /dev/null 2>&1
10echo "remove /var/etc/titan/satellites"
11rm -rf /var/etc/titan/satellites > /dev/null 2>&1
12echo "remove /var/etc/titan/transponder"
13rm -rf /var/etc/titan/transponder > /dev/null 2>&1
14
15echo "successfully removed"
16echo "syncing disk"
17sync
18if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
19 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
20 FREE=`expr $SPACE - 100`
21 echo new freespace size $FREE kb
22fi
23
24echo "Rebooting Box in 10s..."
25sleep 5
26(sleep 10;reboot) &
27exit 0
Note: See TracBrowser for help on using the repository browser.