source: ipk/source.sh4/swapscreensaver_default_1_0/CONTROL/postinst @ 12781

Last change on this file since 12781 was 12781, checked in by obi, 9 years ago

[ipk] update all swap/titan flash ipks

  • Property svn:executable set to *
File size: 502 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.swapscreensaver
3echo "successfully installed"
4
5link=`readlink /var/swap`
6if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
7        SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
8        FREE=`expr $SPACE - 100`
9        echo new freespace size $FREE kb
10else
11        echo "syncing disk"
12        sync
13fi
14echo "please reboot your box so that the extension will be mounted..."
15exit 0
Note: See TracBrowser for help on using the repository browser.