source: ipk/source.sh4/titannetwork_openvpn/CONTROL/postrm@ 13958

Last change on this file since 13958 was 13958, checked in by madie, 14 years ago

ipk fix

File size: 569 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 -r /var/swap/lib/modules
9rm -r /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.