Ignore:
Timestamp:
Sep 8, 2013, 11:04:54 AM (7 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

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

    r12781 r23440  
    11#!/bin/sh
    2 TMP=/tmp/.swapscreensaver
     2INSTDIR="$1"
    33
    4 rm -rf /var/swap/saver/default
     4rm -rf "$INSTDIR/usr/local/share/titan/saver/default"
    55
    6 echo "successfully removed"
    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`
    10         FREE=`expr $SPACE - 100`
    11         echo new freespace size $FREE kb
    12 else
    13         echo "syncing disk"
    14         sync
    15 fi
    166exit 0
Note: See TracChangeset for help on using the changeset viewer.