source: ipk/source.sh4/swapnetwork_wlan_400/CONTROL/postrm@ 17841

Last change on this file since 17841 was 14849, checked in by capt_bluebaer, 14 years ago

[ipk] wireless: installation fix

  • Property svn:executable set to *
File size: 516 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.wlan
3
4echo "successfully removed"
5
6sed -e 's/wlan=.*/wlan=n/' /var/etc/autostart/start-config > /tmp/start-config
7mv /tmp/start-config /var/etc/autostart/start-config
8echo "start-config updated"
9echo
10
11echo "syncing disk"
12sync
13
14if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
15 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
16 FREE=`expr $SPACE - 100`
17 echo new freespace size $FREE kb
18fi
19exit 0
Note: See TracBrowser for help on using the repository browser.