Changeset 15803 for ipk/source.sh4/titanswapbrowser_netsurf/CONTROL/preinst
- Timestamp:
- May 19, 2012, 7:43:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
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)