diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2009-05-17 19:02:38 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2009-05-17 19:02:38 +0000 |
commit | a21a3c7cf09552c65568b13d4386f861f6266c91 (patch) | |
tree | 120fbd7faacef7b4d1b87ca5b7070a65f00480fc /bootscripts | |
parent | 0b258b4ae8bbd1dce53fb598ae8b2ce5a421d598 (diff) |
Ignore error in ifdown script when determining status
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8887 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'bootscripts')
-rw-r--r-- | bootscripts/lfs/sysconfig/network-devices/ifdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootscripts/lfs/sysconfig/network-devices/ifdown b/bootscripts/lfs/sysconfig/network-devices/ifdown index b836cb8ef..1fb69aa44 100644 --- a/bootscripts/lfs/sysconfig/network-devices/ifdown +++ b/bootscripts/lfs/sysconfig/network-devices/ifdown @@ -82,7 +82,7 @@ for file in ${FILES}; do done if [ -z "${2}" ]; then - link_status=`ip link show $1` + link_status=`ip link show $1 2>/dev/null` if [ -n "${link_status}" ]; then if echo "${link_status}" | grep -q UP; then boot_mesg "Bringing down the ${1} interface..." |