1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

use dash in place of bash, drop last bashism

This commit is contained in:
Jerry Vonau 2023-04-24 01:10:03 -05:00
parent ef6486b09b
commit d738fdc1ef

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
IFACE={{ discovered_wireless_iface }}
RASPBIAN=0
NETPLAN=0
@ -44,15 +44,6 @@ if [ -f /run/netplan/wpa-$IFACE.conf ]; then
fi
fi
# IIAB hint for NetworkManager
# could scrape /etc/NetworkManager/system-connections/ looking for ssid
if [ -f /etc/iiab/iiab.env ]; then
source /etc/iiab/iiab.env
if [ ! -z $CLIENT_SSID ]; then
SSID=$CLIENT_SSID
fi
fi
# NetworkManager
if [ -z $SSID ] && [ ! -z $(pgrep NetworkManager) ]; then
echo "NetworkManager"