hostapd: undo rename if dual interfaces are not supported.

This commit is contained in:
Arne Fitzenreiter
2015-01-30 17:39:34 +01:00
parent e21cef2784
commit 9c47987e25
2 changed files with 7 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = hostapd
PAK_VER = 32
PAK_VER = 33
DEPS = ""

View File

@@ -112,7 +112,12 @@ case "${1}" in
ip link set ${INTERFACE} name ${INTERFACE}_man
iw dev ${INTERFACE}_man interface add ${INTERFACE} type __ap
evaluate_retval;
/usr/bin/hostapd -P /var/run/hostapd /etc/hostapd.conf >/dev/null 2>&1 &
if [ -d /sys/class/net/${INTERFACE} ]; then
/usr/bin/hostapd -P /var/run/hostapd /etc/hostapd.conf >/dev/null 2>&1 &
else
ip link set ${INTERFACE}_man down
ip link set ${INTERFACE}_man name ${INTERFACE}
fi
exit 0;
else
echo_ok