X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=x2%2Fsrc%2Fbash%2Fexe%2Fkhatus_sensor_net_carrier.sh;h=3d463d6235170e7e5628199dcf02e3979c5c86bc;hb=59866875b27ff5206a421ba91990a49249212e7c;hp=38597d0528d8937ccfe2301923b27cc3fdb0b5c0;hpb=d91f926f464cb9b1e34d61f810c9187170b9fcfd;p=khatus.git diff --git a/x2/src/bash/exe/khatus_sensor_net_carrier.sh b/x2/src/bash/exe/khatus_sensor_net_carrier.sh index 38597d0..3d463d6 100644 --- a/x2/src/bash/exe/khatus_sensor_net_carrier.sh +++ b/x2/src/bash/exe/khatus_sensor_net_carrier.sh @@ -2,5 +2,5 @@ for interface in $(ls /sys/class/net) do - printf "%s|%d\n" $interface $(cat /sys/class/net/$interface/carrier) + printf "%s|%d\n" $interface $(cat /sys/class/net/$interface/carrier 2> /dev/null) done