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"