Changeset 23448 for ipk/source.sh4/titanswaptools_lcdpearl1/CONTROL/postrm
- Timestamp:
- Sep 8, 2013, 6:07:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanswaptools_lcdpearl1/CONTROL/postrm
r15994 r23448 1 1 #!/bin/sh 2 2 TMP=/tmp/.TOOLS 3 INSTDIR="$1" 4 PLUGINDIR=$INSTDIR/usr/local/share/titan/plugins/lcdpearl1 3 5 4 rm -rf /var/swap/titanplugins/lcdpearl16 rm -rf $PLUGINDIR 5 7 rm -rf /var/etc/lcd4linux.conf 6 rm -rf /var/usr/local/share/titan/plugins/lcdpearl17 8 8 echo "successfully removed"9 link=`readlink /var/swap`10 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then11 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`12 FREE=`expr $SPACE - 100`13 echo new freespace size $FREE kb14 else15 echo "syncing disk"16 sync17 fi18 9 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)