|
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
|
|---|
| 2 | TMP=/tmp/.wlan
|
|---|
| 3 |
|
|---|
| 4 | echo "successfully installed"
|
|---|
| 5 |
|
|---|
| 6 | [ -z "`grep wlan= /var/etc/autostart/start-config`" ] && echo "wlan=y" >> /var/etc/autostart/start-config
|
|---|
| 7 | sed -e 's/wlan=.*/wlan=y/' /var/etc/autostart/start-config > /tmp/start-config
|
|---|
| 8 | mv /tmp/start-config /var/etc/autostart/start-config
|
|---|
| 9 | echo "start-config updated"
|
|---|
| 10 | echo
|
|---|
| 11 |
|
|---|
| 12 | echo "syncing disk"
|
|---|
| 13 | sync
|
|---|
| 14 |
|
|---|
| 15 | if [ `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
|
|---|
| 19 | fi
|
|---|
| 20 | echo "please plug your wifi adapter in a free usb port and reboot your box"
|
|---|
| 21 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.