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

Last change on this file since 12385 was 12385, checked in by capt_bluebaer, 14 years ago
  • Property svn:executable set to *
File size: 729 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.wlan
3
4echo "successfully installed"
5
6for i in funcemu.ko rt73.ko rt2870sta.ko rt3070sta.ko zd1211.ko zd1211b.ko; do
7 echo $i >> /var/etc/blacklist-modules
8done
9echo "modules blacklist updated"
10
11if [ -z `grep wlan /var/etc/autostart/start-config` ]; then
12 echo "wlan=y" >> /var/etc/autostart/start-config
13 echo "start-config updated"
14fi
15
16echo "syncing disk"
17sync
18
19if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
20 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
21 FREE=`expr $SPACE - 100`
22 echo new freespace size $FREE kb
23fi
24echo "please plug your wifi adapter in a free usb port and reboot your box"
25exit 0
Note: See TracBrowser for help on using the repository browser.