From 3d7643117782008acfdaa14dfab28e65d9ad7f5d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 22 Nov 2006 15:51:38 +0000 Subject: more fixes for network module unload (#211474) --- sysconfig/network-scripts/network-functions-ipv6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6 index 8cfa9158..2db8248c 100644 --- a/sysconfig/network-scripts/network-functions-ipv6 +++ b/sysconfig/network-scripts/network-functions-ipv6 @@ -840,7 +840,7 @@ ipv6_test_device_status() { fi # Test if device exists - if ! ipv6_exec_ip link show dev $device >/dev/null 2>&1; then + if [ ! -d "/sys/class/net/${device}" ]; then # not exists return 10 fi -- cgit v1.2.1