minox fix
This commit is contained in:
Vendored
+17
-6
@@ -114,13 +114,24 @@ configure_mac() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Executa o script de configuração do MAC e aguarda pela sua conclusão
|
||||
if bash "$mac_script"; then
|
||||
log "${GREEN}MAC address configuration completed successfully${NC}"
|
||||
return 0
|
||||
# If MAC address was provided as parameter, pass it to the script
|
||||
if [ -n "$1" ]; then
|
||||
if bash "$mac_script" "$1"; then
|
||||
log "${GREEN}MAC address configuration completed successfully${NC}"
|
||||
return 0
|
||||
else
|
||||
log "${RED}Failed to execute MAC address configuration script${NC}"
|
||||
return 1
|
||||
fi
|
||||
else
|
||||
log "${RED}Failed to execute MAC address configuration script${NC}"
|
||||
return 1
|
||||
# If no MAC address was provided, run the script without parameters
|
||||
if bash "$mac_script"; then
|
||||
log "${GREEN}MAC address configuration completed successfully${NC}"
|
||||
return 0
|
||||
else
|
||||
log "${RED}Failed to execute MAC address configuration script${NC}"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user