Changeset 23439 for ipk/source.sh4/swapnetwork_samba/CONTROL/postrm
- Timestamp:
- Sep 8, 2013, 11:00:24 AM (13 years ago)
- File:
-
- 1 edited
-
ipk/source.sh4/swapnetwork_samba/CONTROL/postrm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/swapnetwork_samba/CONTROL/postrm
r13993 r23439 1 1 #!/bin/sh 2 TMP=/tmp/.tmp3 2 4 echo "successfully removed"5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then6 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`7 FREE=`expr $SPACE - 100`8 echo new freespace size $FREE kb9 else10 echo "syncing disk"11 sync12 fi13 3 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)