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:
parent
ef6486b09b
commit
d738fdc1ef
1 changed files with 1 additions and 10 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue