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"
|
||||
if [ $result -lt 13 ]; then
|
||||
FREQ2=$result
|
||||
else
|
||||
syslog info "50-iiab channel $FREQ2 is 5Ghz NOT CHANGING HOSTAPD"
|
||||
fi
|
||||
done
|
||||
echo "Using $FREQ2 for carrier"
|
||||
|
@ -26,6 +28,8 @@ if [ "$interface" = "wlan0" ]; then
|
|||
echo "Editing Hostapd for channel $FREQ2"
|
||||
cp /etc/hostapd/hostapd.conf.iiab /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
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -53,6 +53,8 @@ for result in $FREQ; do
|
|||
if [ $result -lt 2485 ] && [ $result -gt 2407 ]; then
|
||||
FREQ2=$result
|
||||
break
|
||||
else
|
||||
echo "channel $result is 5Ghz - ignoring"
|
||||
fi
|
||||
done
|
||||
echo "Using $FREQ2 for $SSID"
|
||||
|
|
Loading…
Add table
Reference in a new issue