source: ipk/source.sh4/titanswapnetwork_openvpn/CONTROL/postrm@ 15994

Last change on this file since 15994 was 15994, checked in by obi, 14 years ago

[ipk] fix

File size: 571 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.tmp
3
4mv /var/etc/autostart/usercmd.sh.original /var/etc/autostart/usercmd.sh
5chmod 755 /var/etc/autostart/usercmd.sh
6echo "Originaldatei wird wieder hergestellt"
7
8rm -rf /var/swap/lib/modules
9rm -rf /var/swap/etc/openvpn
10
11echo "successfully removed"
12if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
13 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
14 FREE=`expr $SPACE - 100`
15 echo new freespace size $FREE kb
16else
17 echo "syncing disk"
18 sync
19fi
20exit 0
Note: See TracBrowser for help on using the repository browser.