|
Last change
on this file since 17907 was 17907, checked in by andy-1, 14 years ago |
|
fix Settingsinstall
|
-
Property svn:executable
set to
*
|
|
File size:
701 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 | echo 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 | echo "Rebooting Box in 10s..."
|
|---|
| 29 | sleep 5
|
|---|
| 30 | (sleep 10;init 6) &
|
|---|
| 31 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.