Skip to content

Commit

Permalink
Add ability to set your own mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mastacontrola committed May 28, 2024
1 parent b34c6b3 commit ecbe75b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S40network
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ for iface in $ifaces; do
# exiting on dhcp request is not sufficient.
if [[ $ustat -eq 0 && $cstat -eq 0 ]]; then
if [[ ! -z $mac && ! -z $domacset ]]; then
if [[ ! -z $setmacto ]]; then
mac=$setmacto
fi
# Update the mac address if the DoMACSet flag
# has been raised
ip link set dev $iface down
Expand All @@ -61,7 +64,7 @@ for iface in $ifaces; do
fi
fi
echo "Either DHCP failed or we were unable to access ${web}/index.php for connection testing."
# Geo-If we are on the 2nd loop, lets check too see if
# Geo-If we are on the 2nd loop, lets check to see if
# spanning tree is blocking dhcp
if [[ $seq -eq 2 ]]; then
echo "Waiting for Spanning Tree timeout on ${iface}..."
Expand Down

0 comments on commit ecbe75b

Please sign in to comment.