Changeset 19144
- Timestamp:
- Dec 17, 2012, 5:10:52 PM (13 years ago)
- Location:
- ipk/source.sh4/titanswapnetwork_openvpn/CONTROL
- Files:
-
- 4 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 -
ipk/source.sh4/titanswapnetwork_openvpn/CONTROL/postrm
r15994 r19144 10 10 11 11 echo "successfully removed" 12 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 13 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 12 link=`readlink /var/swap` 13 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 14 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 14 15 FREE=`expr $SPACE - 100` 15 16 echo new freespace size $FREE kb -
ipk/source.sh4/titanswapnetwork_openvpn/CONTROL/preinst
r13950 r19144 17 17 18 18 echo "checking swapstick" 19 if [ ! -d /var/swap/ bin/]; then19 if [ ! -d /var/swap/titanplugins ]; then 20 20 echo "--------------------------" 21 21 echo "no swapstick found...." … … 24 24 fi 25 25 echo "swapstick found...." 26 27 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1]; then28 SPACE=`df | grep /dev/mtdblock | grep var| sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`26 link=`readlink /var/swap` 27 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 28 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 29 29 FREE=`expr $SPACE - 100` 30 30 SIZE=950 … … 42 42 sync 43 43 fi 44 buildgroup=`cat /etc/.buildgroup` 45 echo "checking OS" 46 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 47 echo --------------------------- 48 echo DONT USE this IPK Package!! 49 echo --- 50 echo Only for $buildgroup Image!! 51 echo --------------------------- 52 exit 1 53 fi 54 44 55 echo "installing Openvpn ..." 45 56 … … 47 58 echo "Original usercmd.sh wird gesichert" 48 59 49 50 51 60 exit 0 -
ipk/source.sh4/titanswapnetwork_openvpn/CONTROL/prerm
r13950 r19144 1 1 #!/bin/sh 2 2 TMP=/tmp/.tmp 3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 4 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` 5 6 FREE=`expr $SPACE - 100` 6 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)