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