From 78e482a910717735ed51cff20cb22253248dcd35 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sun, 5 May 2019 14:59:18 -0600 Subject: Update dhcp-server.sh --- dhcp-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcp-server.sh b/dhcp-server.sh index bc0cdb6..f21abc9 100755 --- a/dhcp-server.sh +++ b/dhcp-server.sh @@ -11,7 +11,7 @@ echo 'Restarting Device' ip link set "$BRIDGE_INTERFACE" down ip link set "$BRIDGE_INTERFACE" up # Check if ip already assigned -if [ -z "$(ip a | grep -A 5 ens9 | grep $ROUTERIP)" ]; then +if [ -z "$(ip a | grep -A 5 "$BRIDGE_INTERFACE" | grep $ROUTERIP)" ]; then ip addr add "$ROUTERIP"/24 dev "$BRIDGE_INTERFACE" # arbitrary address fi -- cgit v1.2.3