diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile index c7eea0045..d9f5b3ea3 100644 --- a/package/lean/autocore/Makefile +++ b/package/lean/autocore/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2010-2011 OpenWrt.org +# Copyright (C) 2010-2022 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. diff --git a/package/lean/autocore/files/arm/sbin/ethinfo b/package/lean/autocore/files/arm/sbin/ethinfo index 1115de2ca..2d005b6cc 100755 --- a/package/lean/autocore/files/arm/sbin/ethinfo +++ b/package/lean/autocore/files/arm/sbin/ethinfo @@ -1,6 +1,6 @@ #!/bin/sh -a=$(ls /sys/class/net/*/device/uevent | awk -F '/' '{print $5}') +a=$(ls /sys/class/net/*/device/uevent | grep eth | awk -F '/' '{print $5}') b=$(echo "$a" | wc -l) rm -f /tmp/state/ethinfo