From 5584914fdef305a379f9eb43ef9c6f815da046f9 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Tue, 13 Jun 2023 16:16:30 -0600 Subject: [PATCH] clone client mac before DHCP server --- wlan2eth.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wlan2eth.sh b/wlan2eth.sh index 78b2606..6e47561 100755 --- a/wlan2eth.sh +++ b/wlan2eth.sh @@ -38,9 +38,10 @@ while true; do echo -e "--> Reset complete\n" elif [ "$STATUS" == "1" ]; then echo -e "\n----> Interface $ETH_IFACE has been plugged in." - bash "$DIR/bridge/bridge-lan.sh" - echo "" + # Clone the mac first so that when we give the client an IP they'll know we're ready to go bash "$DIR/bridge/clone-client-mac.sh" + echo "" + bash "$DIR/bridge/bridge-lan.sh" echo -e "--> Bridge complete\n" else echo -e "\n----> Interface $ETH_IFACE not found, doing nothing...\n"