Use LDOPTS instead of LDFLAGS to avoid an ld warning on Linux 2.4
[madwifi/.git] / scripts / madwifi-unload
index 5f033bfb3ff28d8bdeca2f65d43d30b688136e75..4dbee9505fb37b51f85a056b40d5344d800b4430 100755 (executable)
@@ -3,7 +3,7 @@
 : ${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
 }
@@ -18,7 +18,7 @@ while test "$tries" != "0"; do
        skipped=0
        IFS='
 '
-       for line in `cat /proc/modules`; do
+       for line in $(cat /proc/modules); do
                IFS='   '
                set x $line
                name="$2"