1
0
Fork 0
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:
A Holt 2020-09-08 09:08:21 -04:00 committed by GitHub
commit 12c75e7382
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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"