2024-02-15 22:07:50 +01:00
|
|
|
if [ ! -f "/link/config/mac" ] || [ ! -s /link/config/mac ] || [ -z "$(cat /link/config/mac)" ]; then
|
2024-02-15 22:07:30 +01:00
|
|
|
/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
|