1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00
This commit is contained in:
Jerry Vonau 2023-04-23 01:59:52 -05:00
parent b17cab4794
commit 472fdfd152

View file

@ -62,7 +62,7 @@ if [ $SSID == "NA" ] && [ ! -z $(pgrep NetworkManager) ]; then
fi
echo "ssid is $SSID"
if [ $SSID == "" ]; then
if [ -z $SSID ]; then
echo "Couldn't find ssid $SSID to use exiting"
if [ $NETPLAN -eq 1 ]; then
echo "Netplan1"
@ -90,7 +90,7 @@ if [ $NETPLAN -eq 1 ]; then
/bin/systemctl restart netplan-wpa-$IFACE.service
fi
if [ $FREQ2 == "" ]; then
if [ -z $FREQ2 ]; then
echo "Couldn't find frequency to use exiting"
if [ $NETPLAN -eq 1 ]; then
echo "Netplan3"
@ -109,6 +109,7 @@ if [ $CHAN -ne $HOSTAPD ]; then
cp /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf
sed -i -e "s/^channel.*/channel=$CHAN/" /etc/hostapd/hostapd.conf
/bin/systemctl --no-block restart hostapd
echo "Restarted hostapd"
fi
exit 0