diff options
| -rwxr-xr-x | dhcp-server.sh | 2 | 
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 | 
