mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Fix typo at hostapd initskript
Increased delays at hostapd initskrip
This commit is contained in:
@@ -17,7 +17,7 @@ case "${1}" in
|
|||||||
|
|
||||||
# Check Interface configuration
|
# Check Interface configuration
|
||||||
if ! ip link show $INTERFACE > /dev/null 2>&1; then
|
if ! ip link show $INTERFACE > /dev/null 2>&1; then
|
||||||
boot_mesg "Interface $INTERFACE does'nt exist." ${FAILURE}
|
boot_mesg "Interface $INTERFACE doesn't exist." ${FAILURE}
|
||||||
echo_failure
|
echo_failure
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -70,7 +70,7 @@ case "${1}" in
|
|||||||
|
|
||||||
/usr/bin/hostapd -P /var/run/hostapd /etc/hostapd.conf >/dev/null 2>&1 &
|
/usr/bin/hostapd -P /var/run/hostapd /etc/hostapd.conf >/dev/null 2>&1 &
|
||||||
|
|
||||||
sleep 1
|
sleep 2
|
||||||
|
|
||||||
if [ $DRIVER == "MADWIFI" ]; then
|
if [ $DRIVER == "MADWIFI" ]; then
|
||||||
iwpriv $INTERFACE maccmd 3
|
iwpriv $INTERFACE maccmd 3
|
||||||
@@ -86,7 +86,7 @@ case "${1}" in
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 1
|
sleep 2
|
||||||
|
|
||||||
if [ "$(/usr/sbin/iwconfig $INTERFACE | /bin/grep "Mode:Master")" == "" ]; then
|
if [ "$(/usr/sbin/iwconfig $INTERFACE | /bin/grep "Mode:Master")" == "" ]; then
|
||||||
boot_mesg "Error! Can't set wlan master mode"
|
boot_mesg "Error! Can't set wlan master mode"
|
||||||
|
|||||||
Reference in New Issue
Block a user