fix die on clone mac failure
This commit is contained in:
parent
8b148fad11
commit
54ebfd1822
|
@ -10,11 +10,9 @@ function get_client_mac_address() {
|
|||
if [ -n "$MAC_ADDRESS" ]; then
|
||||
echo "$MAC_ADDRESS"
|
||||
else
|
||||
echo "Could not find the MAC address of the connected device with IP address $TARGET_IP"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Interface $ETH_IFACE is not plugged in."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ while true; do
|
|||
echo -e "--> Reset complete\n"
|
||||
elif [ "$STATUS" == "1" ]; then
|
||||
echo -e "\n----> Interface $ETH_IFACE has been plugged in."
|
||||
# Clone the mac first so that when we give the client an IP they'll know we're ready to go
|
||||
# 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"
|
||||
|
|
Loading…
Reference in New Issue