added an error null

This commit is contained in:
inxi-svn 2011-04-25 06:53:44 +00:00
parent c7079c5f00
commit 2c75a106b6

2
inxi
View file

@ -3049,7 +3049,7 @@ get_network_advanced_data()
working_path=$working_path/net/$card_port working_path=$working_path/net/$card_port
# 2.6.32 debian lenny kernel shows not: /net/eth0 but /net:eth0 # 2.6.32 debian lenny kernel shows not: /net/eth0 but /net:eth0
else 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" ) eth_id=$( cut -d ':' -f 2 <<< "$card_port" )
working_path=$working_path/$card_port working_path=$working_path/$card_port
fi fi