aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-ippp
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-ippp
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-ippp')
-rwxr-xr-xsysconfig/network-scripts/ifup-ippp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp
index 9e2f3376..643b2a8c 100755
--- a/sysconfig/network-scripts/ifup-ippp
+++ b/sysconfig/network-scripts/ifup-ippp
@@ -76,7 +76,7 @@ function start_ibod()
device=$1
if [ -f /etc/isdn/ibod.cf -a -x /usr/sbin/ibod ] ; then
ibod $device &
- pid=`pidof ibod`
+ pid=$(pidof ibod)
[ -n "$pid" ] && touch /var/lock/subsys/ibod
fi
}
@@ -109,7 +109,7 @@ function addprovider()
[ "$DEFROUTE" = "yes" ] && options="$options defaultroute deldefaultroute"
# set authentication
- _auth=`echo "$AUTH" | sed 's/[a-z -]*//g'`
+ _auth=$(echo "$AUTH" | sed 's/[a-z -]*//g')
if [ -n "$_auth" ]; then
if [ -z "$USER" -a "$DIALIN" != "on" ]; then
log_echo " Error: $1 (syncppp) user is not set"
@@ -128,7 +128,7 @@ function addprovider()
# authentication options:
# +pap and/or +chap does not work correct by dialout - remove
# them if it's configured as dialout
- [ "$DIALIN" = "on" ] || AUTH=`echo "$AUTH" | sed 's/+[a-z]*//g'`
+ [ "$DIALIN" = "on" ] || AUTH=$(echo "$AUTH" | sed 's/+[a-z]*//g')
fi
# add ISDN device