summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/network/if-post-down.d/03-wireless
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-13 13:58:07 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-13 13:58:07 +0100
commit011eae436ef9c42ffeae570d10964ab1265c081d (patch)
treec04e93dcf1c61874ea7fcf36dcc1ee605ff3ce14 /package/base-files/src/etc/network/if-post-down.d/03-wireless
parentf513a8a7eb9fd3ec28bfcb773ace28d49b61c0e7 (diff)
add support for wireless access point with p54usb stick
Diffstat (limited to 'package/base-files/src/etc/network/if-post-down.d/03-wireless')
-rwxr-xr-xpackage/base-files/src/etc/network/if-post-down.d/03-wireless15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/base-files/src/etc/network/if-post-down.d/03-wireless b/package/base-files/src/etc/network/if-post-down.d/03-wireless
new file mode 100755
index 000000000..66e92639b
--- /dev/null
+++ b/package/base-files/src/etc/network/if-post-down.d/03-wireless
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+[ "${IFACE%%[0-9]*}" = "wlan" ] || exit 0
+
+case "$IF_WIRELESS_MODE" in
+ ap)
+ logger -t hostap "Killing hostapd"
+ pkill hostapd
+ ;;
+ *)
+ exit 0
+ ;;
+esac
+exit 0