S03ethernet/wz_mini.conf: add USB_ETH_MAC_ADDR variable to config and init script

This commit is contained in:
Alfonso Gamboa 2023-07-19 17:07:37 -07:00
parent 2fabba2e38
commit 9c88234f87
3 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,10 @@ case "$1" in
cat /sys/class/net/eth0/address | tr '[:lower:]' '[:upper:]' > /opt/wz_mini/tmp/eth0_mac
if [ -n "$USB_ETH_MAC_ADDR" ]; then
/opt/wz_mini/tmp/.bin/ifconfig eth0 hw ether $USB_ETH_MAC_ADDR
fi
else
echo "USB Ethernet disabled"
fi

View File

@ -14,6 +14,7 @@ CUSTOM_HOSTNAME="WCV3"
ENABLE_USB_ETH="false"
ENABLE_USB_ETH_MODULE_AUTODETECT="true"
ENABLE_USB_ETH_MODULE_MANUAL=""
USB_ETH_MAC_ADDR=""
ENABLE_USB_DIRECT="false"
USB_DIRECT_MAC_ADDR="02:01:02:03:04:08"

View File

@ -14,6 +14,7 @@ CUSTOM_HOSTNAME="WCV3"
ENABLE_USB_ETH="false"
ENABLE_USB_ETH_MODULE_AUTODETECT="true"
ENABLE_USB_ETH_MODULE_MANUAL=""
USB_ETH_MAC_ADDR=""
ENABLE_USB_DIRECT="false"
USB_DIRECT_MAC_ADDR="02:01:02:03:04:08"