Skip to content

Commit

Permalink
Don't try to set the MAC if it is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilioPeJu committed May 1, 2024
1 parent 465a913 commit 8bd985e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rootfs/network/parse-config
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ compute_broadcast() { ip_to_dotted $(($1 | ~$2)); }


# First set the MAC address
ifconfig eth0 hw ether $(get_mac_address)
MAC="$(get_mac_address)"
[ -n "$MAC" ] && ifconfig eth0 hw ether "$MAC"


mkdir -p $VAR
Expand Down

0 comments on commit 8bd985e

Please sign in to comment.