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

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

[ipk] wireless: update modules and some small fixes

  • Property svn:executable set to *
File size: 572 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.wlan
3
4echo "successfully installed"
5
6if [ -z `grep wlan /var/etc/autostart/start-config` ]; then
7 echo "wlan=y" >> /var/etc/autostart/start-config
8 echo "start-config updated"
9fi
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
19echo "please plug your wifi adapter in a free usb port and reboot your box"
20exit 0
Note: See TracBrowser for help on using the repository browser.