mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #2508 from jvonau/better_warn
add warning for 5Ghz NOT CHANGING HOSTAPD
This commit is contained in:
commit
12c75e7382
2 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,8 @@ if [ "$interface" = "wlan0" ]; then
|
||||||
echo "frequency is $result for carrier"
|
echo "frequency is $result for carrier"
|
||||||
if [ $result -lt 13 ]; then
|
if [ $result -lt 13 ]; then
|
||||||
FREQ2=$result
|
FREQ2=$result
|
||||||
|
else
|
||||||
|
syslog info "50-iiab channel $FREQ2 is 5Ghz NOT CHANGING HOSTAPD"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "Using $FREQ2 for carrier"
|
echo "Using $FREQ2 for carrier"
|
||||||
|
@ -26,6 +28,8 @@ if [ "$interface" = "wlan0" ]; then
|
||||||
echo "Editing Hostapd for channel $FREQ2"
|
echo "Editing Hostapd for channel $FREQ2"
|
||||||
cp /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf
|
cp /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf
|
||||||
sed -i -e "s/^channel.*/channel=$FREQ /" /etc/hostapd/hostapd.conf
|
sed -i -e "s/^channel.*/channel=$FREQ /" /etc/hostapd/hostapd.conf
|
||||||
|
echo "THIS MACHINE SHOULD BE REBOOTED"
|
||||||
|
syslog info "THIS MACHINE SHOULD BE REBOOTED"
|
||||||
# systemctl restart hostapd
|
# systemctl restart hostapd
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -53,6 +53,8 @@ for result in $FREQ; do
|
||||||
if [ $result -lt 2485 ] && [ $result -gt 2407 ]; then
|
if [ $result -lt 2485 ] && [ $result -gt 2407 ]; then
|
||||||
FREQ2=$result
|
FREQ2=$result
|
||||||
break
|
break
|
||||||
|
else
|
||||||
|
echo "channel $result is 5Ghz - ignoring"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "Using $FREQ2 for $SSID"
|
echo "Using $FREQ2 for $SSID"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue