aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-post
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-07-29 17:26:33 -0400
committerBill Nottingham <notting@redhat.com>2009-07-30 12:24:33 -0400
commit1096cd2ebc150e5c74b5e8e4016b835f34cd3f48 (patch)
tree5581822887866deec1c54bacb72b732589d0e52f /sysconfig/network-scripts/ifup-post
parent48573c2f689c0b7b0aefcb230ce32a7f0fb9d843 (diff)
downloadinitscripts-1096cd2ebc150e5c74b5e8e4016b835f34cd3f48.tar
initscripts-1096cd2ebc150e5c74b5e8e4016b835f34cd3f48.tar.gz
initscripts-1096cd2ebc150e5c74b5e8e4016b835f34cd3f48.tar.bz2
initscripts-1096cd2ebc150e5c74b5e8e4016b835f34cd3f48.tar.xz
initscripts-1096cd2ebc150e5c74b5e8e4016b835f34cd3f48.zip
Use $() instead of `` for process expansion.
Adapted from <victor.lowther@gmail.com>.
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-xsysconfig/network-scripts/ifup-post4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index af54ed94..29af56b7 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -27,7 +27,7 @@ if [ "$PEERDNS" != "no" ] ||[ -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; the
[ -n "$MS_DNS1" ] && DNS1=$MS_DNS1
[ -n "$MS_DNS2" ] && DNS2=$MS_DNS2
if [ -n "$DNS1" ] && ! grep -q "^nameserver $DNS1" /etc/resolv.conf &&
- tr=`mktemp /tmp/XXXXXX` ; then
+ tr=$(mktemp /tmp/XXXXXX) ; then
current_replacement="$DNS1"
next_replacement="$DNS2"
search=
@@ -71,7 +71,7 @@ if [ "$PEERDNS" != "no" ] ||[ -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; the
# maintain permissions
# but set umask in case it doesn't exist!
- oldumask=`umask`
+ oldumask=$(umask)
umask 022
change_resolv_conf $tr
rm -f $tr