- Timestamp:
- Dec 17, 2012, 5:10:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanswapnetwork_openvpn/CONTROL/postinst
r13950 r19144 1 1 #!/bin/sh 2 2 TMP=/tmp/.tmp 3 echo "successfully installed" 4 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1]; then5 SPACE=`df | grep /dev/mtdblock | grep var| sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`3 link=`readlink /var/swap` 4 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 5 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 6 6 FREE=`expr $SPACE - 100` 7 7 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)