Cleanup setup-ip script a bit

There is no longer a case where $INTERFACE is not set.
This commit is contained in:
Marek Marczykowski-Górecki 2020-12-03 20:51:49 +01:00
parent dd8de797e3
commit 6aa2b89fba
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -181,7 +181,6 @@ if [ -z "$INTERFACE" ]; then
exit 1
fi
if [ -n "$INTERFACE" ]; then
if [ "$ACTION" == "add" ]; then
MAC="$(get_mac_from_iface "$INTERFACE")"
if [ -n "$MAC" ]; then
@ -251,5 +250,3 @@ if [ -n "$INTERFACE" ]; then
echo "Invalid action '$ACTION'" >&2
exit 1
fi
fi