summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <thornycrackers@users.noreply.github.com>2019-05-05 14:59:18 -0600
committerGitHub <noreply@github.com>2019-05-05 14:59:18 -0600
commit78e482a910717735ed51cff20cb22253248dcd35 (patch)
tree0dc103b138913e872d03fb1df7708ff870c3ae7f
parentf7fc27a20588bd157545472af04f8db746578ab8 (diff)
Update dhcp-server.shHEADmaster
-rwxr-xr-xdhcp-server.sh2
1 files changed, 1 insertions, 1 deletions
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