Skip to content

Commit

Permalink
fix incorrect variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonb3 committed Jul 14, 2016
1 parent 991b94d commit fb077ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions systemd/sbin/bubba-restore-defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ if $(ip link show wlan0 2>/dev/null | grep -q "state"); then
fi
if $(systemctl is-active NetworkManager &>/dev/null); then
conn=$(nmcli d | grep "^eth0\s" | awk '{print $NF}')
if [ "conn" != "WAN" ]; then
if [ "conn" != "--" ]; then
if [ "${conn}" != "WAN" ]; then
if [ "${conn}" != "--" ]; then
nmcli connection delete ${conn}
fi
nmcli connection add type ethernet con-name WAN ifname eth0
fi
conn=$(nmcli d | grep "^eth1\s" | awk '{print $NF}')
if [ "conn" != "LAN" ]; then
if [ "conn" != "--" ]; then
if [ "${conn}" != "LAN" ]; then
if [ "${conn}" != "--" ]; then
nmcli connection delete ${conn}
fi
nmcli connection add type ethernet con-name LAN ifname eth1
Expand Down

0 comments on commit fb077ae

Please sign in to comment.