summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2007-10-21 10:53:28 +0200
committerThomas Bächler <thomas@archlinux.org>2007-10-21 10:53:28 +0200
commitbc1b5289228e74641a61cff3bb8b3751713dcf54 (patch)
tree474605e38516696fadb521915b4537c35c97118b /network
parent1828938d4406d5a95b7c89828f61600f9e6975a6 (diff)
replace all remaining backticks with $(...)
Diffstat (limited to 'network')
-rwxr-xr-xnetwork6
1 files changed, 3 insertions, 3 deletions
diff --git a/network b/network
index cde25dd..52316ef 100755
--- a/network
+++ b/network
@@ -32,7 +32,7 @@ ifup()
return 1
fi
# don't bring up an interface that's already up
- [ "`/sbin/ifconfig ${1} 2>/dev/null | grep UP`" ] && return 0
+ [ "$(/sbin/ifconfig ${1} 2>/dev/null | grep UP)" ] && return 0
eval iwcfg="\$wlan_${1}"
if [ "$iwcfg" != "" ]; then
sh -c "/usr/sbin/iwconfig $iwcfg"
@@ -58,7 +58,7 @@ ifdown()
eval ifcfg="\$${1}"
if [ "$ifcfg" = "dhcp" ]; then
if [ -f /var/run/dhcpcd-${1}.pid ]; then
- kill `cat /var/run/dhcpcd-${1}.pid`
+ kill $(cat /var/run/dhcpcd-${1}.pid)
else
# No .pid file, just bring the interface itself down
/sbin/ifconfig ${1} down
@@ -132,7 +132,7 @@ bridge_up()
for br in ${BRIDGE_INTERFACES[@]}; do
if [ "$br" = "${br#!}" ]; then
# if the bridge already exists, remove it
- if [ "`/sbin/ifconfig $br 2>/dev/null`" ]; then
+ if [ "$(/sbin/ifconfig $br 2>/dev/null)" ]; then
/sbin/ifconfig $br down
/usr/sbin/brctl delbr $br
fi