[no ci] Update S40network (#1770)

pull/1775/head
Signor Pellegrino 2025-03-26 20:22:45 +00:00 committed by GitHub
parent 1a4df3a521
commit 2c2869385f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
dev=$(fw_printenv -n wlandev)
mac=$(fw_printenv -n wlanmac)
net=$(fw_printenv -n netaddr_fallback)
eth=$(fw_printenv -n ethaddr)
set_wireless() {
path=/etc/wireless
@ -12,7 +13,7 @@ set_wireless() {
ifup usb0
ifup eth1
fi
[ -e /sys/class/net/eth0 ] && ifconfig eth0 "${net:-192.168.2.10}"
[ -e /sys/class/net/eth0 ] && ifconfig eth0 "${net:-192.168.2.10}" hw ether "${eth:-00:00:23:34:45:66}" up
}
start() {