diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-28 12:23:44 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-28 12:23:44 +0100 |
commit | d8a9ea4f5591783df24634cfaf10f32307b58803 (patch) | |
tree | 1944f8f29b4508118252a6c4a9558ba3d34badea /package/base-files/src/etc/network/if-up.d/02-wireless | |
parent | a4a69676b48a78e175e9f3d6b03df8b5ab29c5c1 (diff) |
fixup some wlan ap stuff, still no success on foxg20
Diffstat (limited to 'package/base-files/src/etc/network/if-up.d/02-wireless')
-rwxr-xr-x | package/base-files/src/etc/network/if-up.d/02-wireless | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/base-files/src/etc/network/if-up.d/02-wireless b/package/base-files/src/etc/network/if-up.d/02-wireless new file mode 100755 index 000000000..cd9d2af3f --- /dev/null +++ b/package/base-files/src/etc/network/if-up.d/02-wireless @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +[ "${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 |