summaryrefslogtreecommitdiff
path: root/wlan-ng/files/wlanctl-ng
blob: 3bd5b1376c7c3b5c18d9edddf2a9e2de8993e633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

modprobe usb_ohci_tc6393

if test ! -d /dev/usb
then
	mkdir -p /dev/usb
fi
if test ! -c /dev/usb/host_ohci
then
	printf "*\tCreating /dev/usb/host_ohci node\n"
	mknod /dev/usb/host_ohci c 10 222
fi

case $0 in
wlanup)
	printf "*\tStarting up wlan-ng interface\n"
	modprobe prism2_usb
	/sbin/usbctl on 1
	/etc/init.d/wlan start
	;;
wlandown)
	printf "*\tShutting down wlan-ng interface\n"
	/etc/init.d/wlan stop
	/sbin/usbctl off 1
	rmmod prism2_usb
	;;
esac