mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
hostapd: undo rename if dual interfaces are not supported.
This commit is contained in:
@@ -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 = ""
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user