Ignore:
Timestamp:
Sep 10, 2013, 12:04:21 AM (13 years ago)
Author:
obi
Message:

fix picons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source/picons_X_LightTransparent/CONTROL/postrm

    r20912 r23576  
    11#!/bin/sh
    2 TMP=/tmp/.picon
    32
    4 
    5 echo "successfully removed"
    6 link=`readlink /var/swap`
    7 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    8         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    9         FREE=`expr $SPACE - 100`
    10         echo new freespace size $FREE kb
    11 else
    12         echo "syncing disk"
    13         sync
    14 fi
    153exit 0
Note: See TracChangeset for help on using the changeset viewer.