aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2009-12-19 15:57:03 +0200
committerBill Nottingham <notting@redhat.com>2010-01-12 17:09:10 -0500
commit265989c6fce9523b46aa9020f241ab2450307aa4 (patch)
tree168538aa78bb8280848af13978f56fef5caf2c05 /sysconfig/network-scripts/network-functions
parentd4c58cd1c84f99030c3f4778d2c64377838e0634 (diff)
downloadinitscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar.gz
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar.bz2
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar.xz
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.zip
Eliminate bunch of unnecessary stat calls and command invocations.
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index e357c0f2..e1c0d6fa 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -58,7 +58,7 @@ need_config ()
nconfig=$(LANG=C grep -l "^[[:space:]]*DEVICE=${1}\([[:space:]#]\|$\)" \
/etc/sysconfig/network-scripts/ifcfg-* \
| LC_ALL=C sed -e "$__sed_discard_ignored_files")
- if [ -n "$nconfig" -a -f "$nconfig" ]; then
+ if [ -n "$nconfig" ] && [ -f "$nconfig" ]; then
CONFIG=${nconfig##*/}
return
fi