hostapd foreground

This commit is contained in:
garywill 2018-08-31 18:41:06 +08:00 committed by garywill
parent 47844d7049
commit eebe767a19
1 changed files with 5 additions and 5 deletions

View File

@ -1714,14 +1714,14 @@ if [[ $WIFI_IFACE ]]; then
fi
echo
echo "Starting hostapd"
$STDBUF_PATH hostapd $HOSTAPD_DEBUG_ARGS -B $CONFDIR/hostapd.conf -P $CONFDIR/hostapd.pid || die &
# $STDBUF_PATH $HOSTAPD $HOSTAPD_DEBUG_ARGS -B -P $CONFDIR/hostapd.pid $CONFDIR/hostapd.conf || die &
$STDBUF_PATH $HOSTAPD $HOSTAPD_DEBUG_ARGS $CONFDIR/hostapd.conf &
HOSTAPD_PID=$!
echo $HOSTAPD_PID > $CONFDIR/hostapd.pid
while [[ ! -f $CONFDIR/hostapd.pid ]]; do
sleep 1
done
#HOSTAPD_PID=$!
#echo $HOSTAPD_PID > $CONFDIR/hostapd.pid
echo -n "hostapd PID: " ; cat $CONFDIR/hostapd.pid