linkpi_firmware_history/rootfs/link/shell/setMac.sh

8 lines
183 B
Bash

if [ ! -f "/link/config/mac" ]; then
/link/shell/makeMac.sh > /link/config/mac
fi
/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 hw ether `cat /link/config/mac`
/sbin/ifconfig eth0 up