summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/network/if-up.d/02-wireless
blob: 1ec73fed2fc8fcb3b73a203cbc968fb66388858f (plain)
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