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

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

[ipk] add openvpn for titan

File size: 512 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
8echo "successfully removed"
9if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then
10 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
11 FREE=`expr $SPACE - 100`
12 echo new freespace size $FREE kb
13else
14 echo "syncing disk"
15 sync
16fi
17exit 0
Note: See TracBrowser for help on using the repository browser.