[no ci] Overlay: remove ethernet workaround from wireless scripts ()

pull/1215/head
viktorxda 2023-12-27 17:19:33 +01:00 committed by GitHub
parent c11188909f
commit 78043c650a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 9 deletions
general/overlay/etc
wireless/interfaces

View File

@ -6,7 +6,8 @@ set_wireless() {
path=/etc/wireless
if $path/usb "$dev" || $path/modem "$dev" || $path/sdio "$dev"; then
[ -n "$mac" ] && ip link set dev wlan0 address "$mac"
ifup wlan0 && file="-i /etc/wireless/interfaces/eth0"
ifup wlan0
ifconfig eth0 192.168.192.10
fi
}
@ -14,15 +15,13 @@ case "$1" in
start)
echo "Starting network..."
ifup -a
[ -n "$dev" ] && set_wireless
ifup eth0 $file
[ -n "$dev" ] && set_wireless || ifup eth0
;;
stop)
echo "Stopping network..."
ifdown -a
[ -n "$dev" ] && ifdown wlan0
ifdown eth0
[ -n "$dev" ] && ifdown wlan0 || ifdown eth0
;;
restart|reload)

View File

@ -1,4 +0,0 @@
iface eth0 inet static
address 192.168.2.10
netmask 255.255.255.0
hwaddress ether $(fw_printenv -n ethaddr || echo 00:00:23:34:45:66)