aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-09-21 17:55:54 +0000
committerBill Nottingham <notting@redhat.com>2005-09-21 17:55:54 +0000
commit3697a6f3365fb3be4e5528495517018f11664ec3 (patch)
treedb8fdf2fbc21e172aa13673c93b03110bfe8b0d2
parent614b83974f1873addaf32ef13b94b92dad434fb7 (diff)
downloadinitscripts-3697a6f3365fb3be4e5528495517018f11664ec3.tar
initscripts-3697a6f3365fb3be4e5528495517018f11664ec3.tar.gz
initscripts-3697a6f3365fb3be4e5528495517018f11664ec3.tar.bz2
initscripts-3697a6f3365fb3be4e5528495517018f11664ec3.tar.xz
initscripts-3697a6f3365fb3be4e5528495517018f11664ec3.zip
throw out nameif error messages
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 7867dd4d..c0e79477 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -158,7 +158,7 @@ do_netreport ()
rename_device()
{
- /sbin/nameif "$1" "$2" || {
+ /sbin/nameif "$1" "$2" 2>/dev/null || {
local hw2=`get_hwaddr ${1}`
local nconfig=`get_config_by_hwaddr ${hw2}`
local dev=
@@ -170,7 +170,7 @@ rename_device()
fi
[ -z "$dev" ] && dev=dev$RANDOM
rename_device $dev $hw2 "$3 $1"
- /sbin/nameif "$1" "$2"
+ /sbin/nameif "$1" "$2" 2>/dev/null
}
}