|
Last change
on this file since 18437 was 18437, checked in by obi, 13 years ago |
|
[ipük] change settings reboot
|
-
Property svn:executable
set to
*
|
|
File size:
667 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | #del old bouquet entrys
|
|---|
| 4 | oldbouquets=`cat /tmp/bouquets.cfg`
|
|---|
| 5 | oldifs=$IFS
|
|---|
| 6 | IFS='
|
|---|
| 7 | '
|
|---|
| 8 | for 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
|
|---|
| 14 | done
|
|---|
| 15 | IFS=$oldifs
|
|---|
| 16 | rm /tmp/bouquets.cfg
|
|---|
| 17 |
|
|---|
| 18 | TMP=/tmp/.set
|
|---|
| 19 | echo "successfully installed"
|
|---|
| 20 | if [ `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
|
|---|
| 24 | else
|
|---|
| 25 | echo "syncing disk"
|
|---|
| 26 | sync
|
|---|
| 27 | fi
|
|---|
| 28 | touch /tmp/.ipkg_needs_reboot
|
|---|
| 29 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.