source: ipk/source.sh4/swapnetwork_wlan_400/CONTROL/postinst@ 14849

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

[ipk] wireless: installation fix

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