Skip to content

Commit

Permalink
Suppress ethtool unprivileged errors in fcgiwrap systemctl output (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrozentsvayg authored Sep 26, 2024
1 parent 5481604 commit cfe5f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teslausb-www/html/cgi-bin/status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit cfe5f14

Please sign in to comment.