aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-15 23:25:42 +0000
committerBill Nottingham <notting@redhat.com>1999-03-15 23:25:42 +0000
commite2a8508c138a7d49f6d4945242a6bc18c4886eab (patch)
tree869919753ef22f2296df9aa52486db5168457dec /sysconfig/network-scripts
parent1e2675f3f19b4d134f67064ac36d7047ced54679 (diff)
downloadinitscripts-e2a8508c138a7d49f6d4945242a6bc18c4886eab.tar
initscripts-e2a8508c138a7d49f6d4945242a6bc18c4886eab.tar.gz
initscripts-e2a8508c138a7d49f6d4945242a6bc18c4886eab.tar.bz2
initscripts-e2a8508c138a7d49f6d4945242a6bc18c4886eab.tar.xz
initscripts-e2a8508c138a7d49f6d4945242a6bc18c4886eab.zip
changes from ultrapenguin (bash2 stuff)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases14
1 files changed, 12 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 55021d6c..6540793e 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -38,9 +38,19 @@ if [ -x /bin/linuxconf ] ; then
else
# we don't have linuxconf to fall back on, so presumably we do
# not have to parse linuxconf ipalias ranges, either.
- allow_null_glob_expansion=foo
+
+ # bash 2 is so much fun.
+ if [ "$BASH_VERSINFO" ]; then
+ shopt -s nullglob
+ else
+ allow_null_glob_expansion=foo
+ fi
for alias in /etc/sysconfig/network-scripts/ifcfg-$1:* ; do
[ -f $alias ] && /etc/sysconfig/network-scripts/ifup $alias
done
- unset allow_null_glob_expansion
+ if [ "$BASH_VERSINFO" ]; then
+ shopt -u nullglob
+ else
+ unset allow_null_glob_expansion
+ fi
fi