From 2c75a106b6ea5e38934d7054ab31aeaf3990e869 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 25 Apr 2011 06:53:44 +0000 Subject: [PATCH] added an error null --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index df64bb8..777e9fe 100755 --- a/inxi +++ b/inxi @@ -3049,7 +3049,7 @@ get_network_advanced_data() working_path=$working_path/net/$card_port # 2.6.32 debian lenny kernel shows not: /net/eth0 but /net:eth0 else - card_port=$( ls $working_path | grep 'net:' ) + card_port=$( ls $working_path 2>/dev/null | grep 'net:' ) eth_id=$( cut -d ':' -f 2 <<< "$card_port" ) working_path=$working_path/$card_port fi