Changeset 23364 for ipk/source/bootlogos_bikergirl_0_1/CONTROL/postrm
- Timestamp:
- Sep 7, 2013, 1:31:24 PM (13 years ago)
- File:
-
- 1 edited
-
ipk/source/bootlogos_bikergirl_0_1/CONTROL/postrm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/bootlogos_bikergirl_0_1/CONTROL/postrm
r4648 r23364 1 1 #!/bin/sh 2 TMP=/tmp/.bootlogos 3 echo "successful removed" 4 echo "syncing disk" 5 sync 6 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then 7 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1` 2 INSTDIR="$1" 3 4 echo "successfully removed" 5 if [ "/var/swap" == "$INSTDIR" ]; then 6 echo "syncing disk" 7 sync 8 else 9 SPACE=`getfreespace "$INSTDIR"` 8 10 FREE=`expr $SPACE - 100` 9 11 echo new freespace size $FREE kb
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)