]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - sysconfig/network-scripts/functions.network
- use $() for command substitution
[projects/rc-scripts.git] / sysconfig / network-scripts / functions.network
index d6dcf2f1c1c8bc7b2002e5ee11c071cfd2e67e33..7754d73cd5148b206899a68600bf09c1da6a38c4 100644 (file)
@@ -171,7 +171,7 @@ static_rarp()
 
 vlan_setup()
 {
-       if [ -x /sbin/vconfig -a -e /proc/net/vlan/config ] && `echo $DEVICE | grep -q ^eth`; then
+       if [ -x /sbin/vconfig -a -e /proc/net/vlan/config ] && $(echo $DEVICE | grep -q ^eth); then
                /sbin/vconfig set_name_type DEV_PLUS_VID_NO_PAD 2>&1 > /dev/null
                ETH_VLANS="yes"
        else
@@ -424,10 +424,11 @@ calcnetmask()
 get_ppp_device_and_pid ()
 {
        if [ -f "/var/run/ppp-$DEVNAME.pid" ] ; then
-               eval `{
+               eval $(
+               {
                        read PID ; echo "PID='$PID'"
                        read REALDEVICE ; echo "REALDEVICE=$REALDEVICE"
-               } < "/var/run/ppp-$DEVNAME.pid"`
+               } < "/var/run/ppp-$DEVNAME.pid")
        fi
 
        if [ -z "$REALDEVICE" ] ; then
This page took 0.145382 seconds and 4 git commands to generate.