source: ipk/source.sh4/titansettings_sofa_cableBW_1_0/CONTROL/postinst@ 18989

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

[ipük] change settings reboot

File size: 667 bytes
Line 
1#!/bin/sh
2
3#del old bouquet entrys
4oldbouquets=`cat /tmp/bouquets.cfg`
5oldifs=$IFS
6IFS='
7'
8for line in $oldbouquets; do
9 file=`echo "$line" | cut -d "#" -f3`
10 grep "#$file" /var/etc/titan/bouquets.cfg > /dev/null
11 if [ $? -ne 0 ]; then
12 rm "$file"
13 fi
14done
15IFS=$oldifs
16rm /tmp/bouquets.cfg
17
18TMP=/tmp/.set
19echo "successfully installed"
20if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
21 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
22 FREE=`expr $SPACE - 100`
23 echo new freespace size $FREE kb
24else
25 echo "syncing disk"
26 sync
27fi
28touch /tmp/.ipkg_needs_reboot
29exit 0
Note: See TracBrowser for help on using the repository browser.