diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1997-09-17 17:02:13 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1997-09-17 17:02:13 +0000 |
commit | ddb2b5837433b9cc8c901abea147471216f3b02d (patch) | |
tree | ea07af74dc9ad8b3a9ccd3ad5d29a7807715ca5f /sysconfig/network-scripts/ifup-post | |
parent | 92a2195e5f56a8283fe7187a49b67ef81c082b65 (diff) | |
download | initscripts-ddb2b5837433b9cc8c901abea147471216f3b02d.tar initscripts-ddb2b5837433b9cc8c901abea147471216f3b02d.tar.gz initscripts-ddb2b5837433b9cc8c901abea147471216f3b02d.tar.bz2 initscripts-ddb2b5837433b9cc8c901abea147471216f3b02d.tar.xz initscripts-ddb2b5837433b9cc8c901abea147471216f3b02d.zip |
Don't print an error if no aliases exist.
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-x | sysconfig/network-scripts/ifup-post | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post index f8c07822..7f79930e 100755 --- a/sysconfig/network-scripts/ifup-post +++ b/sysconfig/network-scripts/ifup-post @@ -15,11 +15,11 @@ fi /etc/sysconfig/network-scripts/ifup-routes ${DEVICE} if [ "$ISALIAS" = no ] ; then - allow_null_glob_expansion=foo for alias in /etc/sysconfig/network-scripts/ifcfg-${DEVICE}:* ; do - /etc/sysconfig/network-scripts/ifup $alias + if [ -f $alias ] ; then + /etc/sysconfig/network-scripts/ifup $alias + fi done - unset allow_null_glob_expansion fi if [ `hostname` = '(none)' -o `hostname` = localhost -a ${DEVICE} != lo ]; then |