diff options
Diffstat (limited to 'boot-env/preboot/uclib-rootfs/init')
| -rwxr-xr-x | boot-env/preboot/uclib-rootfs/init | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boot-env/preboot/uclib-rootfs/init b/boot-env/preboot/uclib-rootfs/init index f2e4f50e..7018a1e2 100755 --- a/boot-env/preboot/uclib-rootfs/init +++ b/boot-env/preboot/uclib-rootfs/init @@ -129,6 +129,11 @@ fetchip ip addr add $ip/$(ipcalc -s -p $ip $subnet|sed s/.*=//) dev $nwif ip route add default via $router +# get the mac address of the boot network adaptor +macaddr=$(ip link show dev $nwif 2>/dev/null | \ + sed -n "/ether [0-9e-f]\{2\}:.*/p" | sed -e "s/.*ether //;s/ .*//") +echo "macaddr=$macaddr" >>/etc/initramfs-setup + # at this point a little selection script could be downloaded, which lets the # user choose what kind of SLX client he wants to get echo "Fetching preboot interactive part and configuration from the net ..." |
