Ignore:
Timestamp:
Sep 10, 2013, 3:06:29 PM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/browser_netsurf/CONTROL/postrm

    r15994 r23622  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
     2INSTDIR="$1"
    33
    4 rm -rf /var/swap/titanplugins/browser
    5 rm -rf /var/usr/local/share/titan/plugins/browser
     4rm -rf "$INSTDIR/usr/local/share/titan/plugins/browser"
    65
    7 echo "successfully removed"
    8 link=`readlink /var/swap`
    9 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    10         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    11         FREE=`expr $SPACE - 100`
    12         echo new freespace size $FREE kb
    13 else
    14         echo "syncing disk"
    15         sync
    16 fi
    176exit 0
Note: See TracChangeset for help on using the changeset viewer.