aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1999-09-07 20:03:10 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1999-09-07 20:03:10 +0000
commitcddaed3dd08271252bde72359b767a6cdeded6c5 (patch)
tree34897ec5f31d6f30dc72ae7c9fbdc6d9e4431588 /sysconfig
parente244e1a8bd5b50b54439dbe29a4a16856ab8f2a6 (diff)
downloadinitscripts-cddaed3dd08271252bde72359b767a6cdeded6c5.tar
initscripts-cddaed3dd08271252bde72359b767a6cdeded6c5.tar.gz
initscripts-cddaed3dd08271252bde72359b767a6cdeded6c5.tar.bz2
initscripts-cddaed3dd08271252bde72359b767a6cdeded6c5.tar.xz
initscripts-cddaed3dd08271252bde72359b767a6cdeded6c5.zip
work right in the background
Diffstat (limited to 'sysconfig')
-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 e5175e01..f015525d 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -5,7 +5,7 @@ source_config ()
{
DEVNAME=`basename $CONFIG | sed 's/^ifcfg-//g'`
- if basename $CONFIG | grep -q '[^g]-' ; then
+ if basename $CONFIG | grep '[^g]-' >/dev/null 2>&1 ; then
PARENTCONFIG=`echo $CONFIG | sed 's/-[^-]*$//g'`
PARENTDEVNAME=`basename $PARENTCONFIG | sed 's/^ifcfg-//g'`
[ -f $PARENTCONFIG ] || {
@@ -43,7 +43,7 @@ set_hostname()
{
echo "$1" > /etc/HOSTNAME
hostname $1
- if ! grep search /etc/resolv.conf; then
+ if ! grep search /etc/resolv.conf >/dev/null 2>&1; then
domain=`echo $1 | sed 's/^[^\.]*\.//'`
echo "search $domain" >> /etc/resolv.conf
fi