clone client mac before DHCP server

This commit is contained in:
Cyberes 2023-06-13 16:16:30 -06:00
parent e851416d23
commit 5584914fde
Signed by: cyberes
GPG Key ID: 6B4A33836A9500FE
1 changed files with 3 additions and 2 deletions

View File

@ -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"