projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use POSIX preferred (and easier to read) $() form rather than ``
[madwifi/.git]
/
scripts
/
madwifi-unload
diff --git
a/scripts/madwifi-unload
b/scripts/madwifi-unload
index 5f033bfb3ff28d8bdeca2f65d43d30b688136e75..4dbee9505fb37b51f85a056b40d5344d800b4430 100755
(executable)
--- a/
scripts/madwifi-unload
+++ b/
scripts/madwifi-unload
@@
-3,7
+3,7
@@
: ${PATTERN='\(ath_.*\|wlan_.*\|wlan\)$'}
: ${MAX_TRIES=10}
: ${PATTERN='\(ath_.*\|wlan_.*\|wlan\)$'}
: ${MAX_TRIES=10}
-test "
`id -u`
" = 0 || {
+test "
$(id -u)
" = 0 || {
echo "ERROR: You must be root to run this script" >&2
exit 1
}
echo "ERROR: You must be root to run this script" >&2
exit 1
}
@@
-18,7
+18,7
@@
while test "$tries" != "0"; do
skipped=0
IFS='
'
skipped=0
IFS='
'
- for line in
`cat /proc/modules`
; do
+ for line in
$(cat /proc/modules)
; do
IFS=' '
set x $line
name="$2"
IFS=' '
set x $line
name="$2"