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/prerm

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