Changeset 6678 for ipk/source/swapemus_camd3_3_902/CONTROL/postrm
- Timestamp:
- Mar 26, 2011, 7:01:36 PM (15 years ago)
- File:
-
- 1 edited
-
ipk/source/swapemus_camd3_3_902/CONTROL/postrm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/swapemus_camd3_3_902/CONTROL/postrm
r5650 r6678 1 1 #!/bin/sh 2 TMP=/tmp/.camd 32 TMP=/tmp/.camd 3 3 4 echo "remove Symlinks" 4 rm -r /var/swap/bin/camd3.902_swap 5 rm -r /var/swap/bin/pcamd_swap 5 6 6 rm /var/bin/camd3.902 7 rm /var/bin/pcamd 8 rm /var/keys/camd3.config 9 rm /var/keys/camd3.servers 10 rm /var/keys/camd3.users 11 12 echo "successful removed" 7 echo "successfully removed" 13 8 echo "syncing disk" 14 9 sync 15 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then16 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`17 FREE=`expr $SPACE - 100`18 echo new freespace size $FREE kb19 fi20 10 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)