|
Last change
on this file since 4651 was 4651, checked in by andy-1, 15 years ago |
|
fix IPK Build
|
-
Property svn:executable
set to
*
|
|
File size:
746 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | #
|
|---|
| 3 | echo "syncing disk"
|
|---|
| 4 | sync
|
|---|
| 5 | if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
|
|---|
| 6 | SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
|
|---|
| 7 | FREE=`expr $SPACE - 100`
|
|---|
| 8 | echo freespace size $FREE kb
|
|---|
| 9 | fi
|
|---|
| 10 | echo "remove kbox"
|
|---|
| 11 | if [ ! -e /var/keys/cwshare.cfg.kbox ]; then
|
|---|
| 12 | echo "rename cwshare.cfg -> cwshare.cfg.kbox"
|
|---|
| 13 | mv /var/keys/cwshare.cfg /var/keys/cwshare.cfg.kbox
|
|---|
| 14 | fi
|
|---|
| 15 | if [ ! -e /var/keys/kbox_cfg.kbox ]; then
|
|---|
| 16 | echo "rename kbox_cfg -> kbox_cfg.kbox"
|
|---|
| 17 | mv /var/keys/kbox_cfg /var/keys/kbox_cfg.kbox
|
|---|
| 18 | fi
|
|---|
| 19 | if [ ! -e /var/keys/nwcdcs.cfg.kbox ]; then
|
|---|
| 20 | echo "rename nwcdcs.cfg -> nwcdcs.cfg.kbox"
|
|---|
| 21 | mv /var/keys/nwcdcs.cfg /var/keys/nwcdcs.cfg.kbox
|
|---|
| 22 | fi
|
|---|
| 23 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.