summaryrefslogtreecommitdiffstats
path: root/abs/core/wlan-ng26-utils/wlan
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
commit7b29169fff9e7c624890c5edffe85def8a293136 (patch)
tree47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/wlan-ng26-utils/wlan
parentc491dea779dac29afff3578bf8245943817c2339 (diff)
downloadlinhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2
LinHES 6.01.00
Diffstat (limited to 'abs/core/wlan-ng26-utils/wlan')
-rw-r--r--abs/core/wlan-ng26-utils/wlan68
1 files changed, 0 insertions, 68 deletions
diff --git a/abs/core/wlan-ng26-utils/wlan b/abs/core/wlan-ng26-utils/wlan
deleted file mode 100644
index 6b3252d..0000000
--- a/abs/core/wlan-ng26-utils/wlan
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/sh
-
-if [ ! -f /etc/wlan/shared ] ; then
- echo "/etc/wlan/shared not present"
- exit 0
-fi
-
-. /etc/wlan/shared
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-case "$1" in
- start)
- # This will implicitly fire off wland via hotplug.
- stat_busy "Starting WLAN Devices"
- if ! $MODPROBE p80211; then
- echo "Failed to load p80211.o."
- exit 1
- fi
-
- # NOTE: We don't explicitly insmod the card driver here. The
- # best thing to do is to specify an alias in /etc/modules.conf.
-
- for DEVICE in $WLAN_DEVICES; do
- $MODPROBE $DEVICE
- # if we don't have hotplug.. do things the old-fashioned way.
- if [ $HAS_HOTPLUG = 'n' ] ; then
- wlan_bring_it_up $DEVICE
- fi
- done
-
- # And hotplug will take care of the rest, namely device
- # initialization and whatnot.
-
- add_daemon wlan
- stat_done
-
- ;;
-
- stop)
- stat_busy "Shutting Down WLAN Devices"
- # Do a reset on each device to make sure none of them are still
- # trying to generate interrupts.
- for DEVICE in $WLAN_DEVICES; do
- wlan_disable $DEVICE
- ifconfig $DEVICE down
- $MODPROBE -r $DEVICE
- done
-
- # remove p80211, which will implictly kill wland.
- $MODPROBE -r p80211
-
- rm_daemon wlan
- stat_done
- ;;
-
- restart)
- $0 stop
- $0 start
- EXITCODE=$?
- ;;
-
- *)
- echo "usage: $0 {start|stop|restart}"
- ;;
-
-esac
-exit 0