Skip to content

Commit

Permalink
Ensure we set mac0 as thats defined after getting IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
mastacontrola committed May 29, 2024
1 parent 547fbba commit 345a536
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S40network
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ for iface in $ifaces; do
# NOTE: the link to web is kind of important, just
# exiting on dhcp request is not sufficient.
if [[ $ustat -eq 0 && $cstat -eq 0 ]]; then
if [[ ! -z $mac && ! -z $domacset ]]; then
if [[ ! -z $mac0 && ! -z $domacset ]]; then
if [[ ! -z $setmacto ]]; then
mac=$setmacto
mac0=$setmacto
fi
# Update the mac address if the DoMACSet flag
# has been raised
ip link set dev $iface down
ip link set dev $iface address $mac
ip link set dev $iface address $mac0
ip link set dev $iface up
fi
exit 0
Expand Down

0 comments on commit 345a536

Please sign in to comment.