commit d446598072c23fe59b51adb38ad32e6b44955925 parent 4e29fd495c22fdbb0c1ad261cbcea2e63bcdaac6 Author: Christoph Lohmann <20h@r-36.net> Date: Tue, 31 Jul 2012 16:10:38 +0200 Make sure that wifi is stopped. Diffstat:
Makefile | | | 3 | ++- |
examples/wifi/run.sh | | | 4 | ++++ |
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -51,4 +51,5 @@ uninstalletc: @echo removing etc files from ${DESTDIR}/etc/conn @rm -rf ${DESTDIR}${PREFIX}/etc/conn -.PHONY: dist examples pm etc install uninstall +.PHONY: dist examples pm etc install uninstall bin + diff --git a/examples/wifi/run.sh b/examples/wifi/run.sh @@ -29,6 +29,10 @@ case "$1" in ;; -k) stopwpa $interface + if [ -x "$WIFIDIR/$interface-action.sh" ]; + then + $WIFIDIR/$interface-action.sh $interface DISCONNECTED + fi islinkup $interface && setlinkdown $interface