mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
style
This commit is contained in:
parent
b17cab4794
commit
472fdfd152
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue