mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-09 15:08:21 +00:00
S03ethernet/wz_mini.conf: add USB_ETH_MAC_ADDR variable to config and init script
This commit is contained in:
parent
2fabba2e38
commit
9c88234f87
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user