Skip to content

Commit

Permalink
Ensure we get the dhcp IP back
Browse files Browse the repository at this point in the history
  • Loading branch information
mastacontrola committed Jun 10, 2024
1 parent c15c2fe commit e82d449
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/S40network
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ for iface in $ifaces; do
ip link set dev $iface down
ip link set dev $iface address $setmacto
ip link set dev $iface up
/sbin/udhcpc -i $iface --now
else
ip link set dev $iface down
ip link set dev $iface address $mac
ip link set dev $iface up
/sbin/udhcpc -i $iface --now
fi
fi
exit 0
Expand Down

0 comments on commit e82d449

Please sign in to comment.