From cfe5f1411639a5de859f3367cda7ce5a0b839a58 Mon Sep 17 00:00:00 2001 From: mrozentsvayg Date: Thu, 26 Sep 2024 08:53:57 -0700 Subject: [PATCH] Suppress ethtool unprivileged errors in fcgiwrap systemctl output (#880) --- teslausb-www/html/cgi-bin/status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teslausb-www/html/cgi-bin/status.sh b/teslausb-www/html/cgi-bin/status.sh index ab44d64c..ae130657 100755 --- a/teslausb-www/html/cgi-bin/status.sh +++ b/teslausb-www/html/cgi-bin/status.sh @@ -38,7 +38,7 @@ ethdev=$(find /sys/class/net/ -type l \( -name 'eth*' -o -name 'en*' \) -printf if [ -n "$ethdev" ] then read -r _ ether_ip _ < <(ifconfig "$ethdev" | grep "inet ") - IFS=" :" read -r _ ether_speed < <(ethtool "$ethdev" | grep Speed) + IFS=" :" read -r _ ether_speed < <(ethtool "$ethdev" 2>&1 | grep Speed) else ether_ip= ether_speed=