From 54ebfd1822c32eb0b2b93b7d5ee67cfd9030b89f Mon Sep 17 00:00:00 2001 From: Cyberes Date: Tue, 13 Jun 2023 16:26:46 -0600 Subject: [PATCH] fix die on clone mac failure --- bridge/get_client_mac_address.sh | 2 -- wlan2eth.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bridge/get_client_mac_address.sh b/bridge/get_client_mac_address.sh index 2391640..79b4137 100755 --- a/bridge/get_client_mac_address.sh +++ b/bridge/get_client_mac_address.sh @@ -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 } diff --git a/wlan2eth.sh b/wlan2eth.sh index 6e47561..33abd67 100755 --- a/wlan2eth.sh +++ b/wlan2eth.sh @@ -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"