Ignore:
Timestamp:
May 19, 2012, 7:43:24 PM (14 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r12781 r15803  
    11#!/bin/sh
    2 TMP=/tmp/.infos
    3 PLUGINDIR=/var/usr/local/share/titan/plugins/browser
    4 rm -r $PLUGINDIR > /dev/null 2>&1
     2TMP=/tmp/.tmp
     3
     4rm -r /var/swap/titanplugins/browser
    55
    66echo "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`
     7link=`readlink /var/swap`
     8if [ `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`
    910        FREE=`expr $SPACE - 100`
    1011        echo new freespace size $FREE kb
Note: See TracChangeset for help on using the changeset viewer.