cyberchallenge-modem/conf/etc/init.d/S05wlan-interfaces
2020-09-17 14:00:05 +02:00

17 lines
364 B
Bash

#!/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