linkpi_firmware_history/rootfs/link/shell/setMac2.sh

9 lines
215 B
Bash
Raw Normal View History

2024-02-15 22:07:35 +01:00
if [ ! -f "/link/config/mac2" ]; then
/link/shell/makeMac.sh > /dev/null
/link/shell/makeMac.sh > /link/config/mac2
fi
/sbin/ifconfig $1 down
/sbin/ifconfig $1 hw ether `cat /link/config/mac2`
/sbin/ifconfig $1 up