Changeset 15803
- Timestamp:
- May 19, 2012, 7:43:24 PM (14 years ago)
- Location:
- ipk/source.sh4/titanswapbrowser_netsurf/CONTROL
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/control
r15802 r15803 2 2 Version: 0.1 3 3 Architecture: sh4 4 OE: KeyLock4 OE: netsurf 5 5 Section: extra 6 6 Priority: optional 7 7 Maintainer: AAF 8 8 Homepage: http://www.aaf-digital.info 9 Source: GOst4711by AAF9 Source: nit by AAF 10 10 Description: Webbrowser Plugin -
ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/postinst
r12781 r15803 1 1 #!/bin/sh 2 TMP=/tmp/.infos 3 2 TMP=/tmp/.tmp 4 3 echo "successfully installed" 5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 6 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 4 link=`readlink /var/swap` 5 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 6 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 7 7 FREE=`expr $SPACE - 100` 8 8 echo new freespace size $FREE kb … … 11 11 sync 12 12 fi 13 echo "install netsurf Browser...." 13 14 exit 0 -
ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/postrm
r12781 r15803 1 1 #!/bin/sh 2 TMP=/tmp/. infos3 PLUGINDIR=/var/usr/local/share/titan/plugins/browser 4 rm -r $PLUGINDIR > /dev/null 2>&12 TMP=/tmp/.tmp 3 4 rm -r /var/swap/titanplugins/browser 5 5 6 6 echo "successfully removed" 7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 8 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 7 link=`readlink /var/swap` 8 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 9 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 9 10 FREE=`expr $SPACE - 100` 10 11 echo new freespace size $FREE kb -
ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/preinst
r12781 r15803 1 1 #!/bin/sh 2 2 # 3 TMP=/tmp/. infos3 TMP=/tmp/.tmp 4 4 5 5 model=`cat /etc/model` … … 16 16 fi 17 17 18 echo "install netsurf Plugin ..." 19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 20 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 18 echo "checking swapstick" 19 if [ ! -d /var/swap/titanplugins ]; then 20 echo "--------------------------" 21 echo "no swapstick found...." 22 echo "--------------------------" 23 exit 1 24 fi 25 echo "swapstick found...." 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` 21 29 FREE=`expr $SPACE - 100` 22 SIZE= 1530 SIZE=4100 23 31 echo "checking freespace" 24 32 echo packege size $SIZE kb … … 45 53 fi 46 54 55 ln -s /var/swap/titanplugins/browser /var/usr/local/share/titan/plugins/browser 56 57 echo "installing netsurf Browser..." 58 47 59 exit 0 -
ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/prerm
r12781 r15803 1 1 #!/bin/sh 2 TMP=/tmp/.infos 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` 2 TMP=/tmp/.tmp 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 … … 9 10 sync 10 11 fi 11 echo "removing netsurf Plugin"12 echo "removing netsurf Browser from swapstick" 12 13 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)