1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh [ "${IFACE%%[0-9]*}" = "wlan" ] || exit 0 case "$IF_WIRELESS_MODE" in ap) [ -x /usr/sbin/hostapd ] || { logger -t hostap "No hostapd program found" exit 1 } logger -t hostap "Starting hostapd" hostapd -B /tmp/hostapd.conf ;; esac