17 lines
364 B
Plaintext
17 lines
364 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
printf "Starting wireless device: "
|
||
|
iw dev wlan0 del
|
||
|
iw phy phy0 interface add ap0 type __ap
|
||
|
iw phy phy0 interface add client0 type station
|
||
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||
|
;;
|
||
|
*)
|
||
|
echo "Usage: $0 {start}"
|
||
|
exit 1
|
||
|
esac
|
||
|
|
||
|
exit 0
|