diff options
author | Bill Nottingham <notting@redhat.com> | 2009-01-28 11:15:06 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-01-28 11:15:06 -0500 |
commit | 8c627efcbd559591360503deb4231a25ffa23190 (patch) | |
tree | ba41c18154f2fad8311a973f4bbc90eb2fd7f569 /sysconfig/network-scripts | |
parent | 6baf5fc0c6696bb5f1c721ca7b9403236e88fea2 (diff) | |
download | initscripts-8c627efcbd559591360503deb4231a25ffa23190.tar initscripts-8c627efcbd559591360503deb4231a25ffa23190.tar.gz initscripts-8c627efcbd559591360503deb4231a25ffa23190.tar.bz2 initscripts-8c627efcbd559591360503deb4231a25ffa23190.tar.xz initscripts-8c627efcbd559591360503deb4231a25ffa23190.zip |
Use a leading path marker when sourcing files. (#482826)
bash 4 breaks the prior code.
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifdown-ippp | 2 | ||||
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 6 | ||||
-rw-r--r-- | sysconfig/network-scripts/network-functions | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/sysconfig/network-scripts/ifdown-ippp b/sysconfig/network-scripts/ifdown-ippp index 54847cd4..3cc85640 100755 --- a/sysconfig/network-scripts/ifdown-ippp +++ b/sysconfig/network-scripts/ifdown-ippp @@ -7,7 +7,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin CONFIG=$1 -. $CONFIG +. ./$CONFIG # stopping ibod daemon for channel bundling if [ -f /var/lock/subsys/ibod ] ; then diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases index 4c03941e..de4454e9 100755 --- a/sysconfig/network-scripts/ifup-aliases +++ b/sysconfig/network-scripts/ifup-aliases @@ -129,7 +129,7 @@ eval ` ( exit 1 } eval ` ( - . $PARENTCONFIG; + . ./$PARENTCONFIG; echo default_NETMASK=$NETMASK\;; echo default_BROADCAST=$BROADCAST\;; echo default_GATEWAY=$GATEWAY\;; @@ -321,7 +321,7 @@ if [ "$BASH_VERSINFO" ]; then shopt -s nullglob; else allow_null_glob_expansion= for FILE in ifcfg-${parent_device}:* ; do is_ignored_file "$FILE" && continue ini_env; - . $FILE; + . ./$FILE; [ -z "$DEVICE" ] && DEVICE=${FILE##ifcfg-} [ "$ONPARENT" != "no" -a "$ONPARENT" != "NO" ] && new_interface; unset DEVICE @@ -330,7 +330,7 @@ done for FILE in ifcfg-${parent_device}-range* ; do is_ignored_file "$FILE" && continue ini_env; - . $FILE; + . ./$FILE; ipaddr_prefix=${IPADDR_START%.*} ipaddr_startnum=${IPADDR_START##*.} diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 05d0bca1..7c0dff8e 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -74,11 +74,11 @@ source_config () echo $"Missing config file $PARENTCONFIG." >&2 exit 1 } - . $PARENTCONFIG - [ -r "keys-$PARENTDEVNAME" ] && . keys-$PARENTDEVNAME + . ./$PARENTCONFIG + [ -r "keys-$PARENTDEVNAME" ] && . ./keys-$PARENTDEVNAME fi - . $CONFIG - [ -r "keys-$DEVNAME" ] && . keys-$DEVNAME + . ./$CONFIG + [ -r "keys-$DEVNAME" ] && . ./keys-$DEVNAME case "$TYPE" in Ethernet) DEVICETYPE="eth" |