Use POSIX preferred (and easier to read) $() form rather than ``
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 19 Jun 2008 00:33:04 +0000 (00:33 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 19 Jun 2008 00:33:04 +0000 (00:33 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3732 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath_hal/Makefile
patch-kernel/install.sh
scripts/madwifi-unload

index 0f2dd526f0eaad74011e7d06bc20732df618a6e0..d2722c057dbb6eddae63a3f1156cd865f6ff780c 100644 (file)
@@ -88,7 +88,7 @@ endif
 # Replace as many hashed names as possible with meaningful
 # ones in the symbol table of the binary kernel module for HAL.
        $(filter-out -O binary -S,$(OBJCOPY)) \
-               `cat $(TOP)/scripts/hal_unmangle.objcopy` \
+               $$(cat $(TOP)/scripts/hal_unmangle.objcopy) \
                $(obj)/$(TARGET).hal.o
 
 .PHONY: install
index c87262b7a6100d52f5e053db762951279108eb9c..e343b1c790be5afde6c2c3dae5cee7470413ec87 100755 (executable)
@@ -14,7 +14,7 @@ die()
 }
 
 SRC=..
-KERNEL_VERSION=`uname -r`
+KERNEL_VERSION=$(uname -r)
 
 if test -n "$1"; then
        KERNEL_PATH="$1"
@@ -74,19 +74,19 @@ cp -f ${SRC}/BuildCaps.inc ${SRC}/svnversion.h ${SRC}/release.h ${MADWIFI}
 
 
 echo "Copying source files"
-FILES=`cd ${SRC} && find ath ath_hal ath_rate hal include net80211 -name '*.[ch]'`
+FILES=$(cd ${SRC} && find ath ath_hal ath_rate hal include net80211 -name '*.[ch]')
 for f in $FILES; do
        case $f in
                *.mod.c) continue;;
        esac
-       mkdir -p `dirname ${MADWIFI}/$f`
+       mkdir -p $(dirname ${MADWIFI}/$f)
        cp -f ${SRC}/$f ${MADWIFI}/$f
 done
 
 echo "Copying makefiles"
-FILES=`cd ${SRC} && find . -name Makefile.kernel`
+FILES=$(cd ${SRC} && find . -name Makefile.kernel)
 for f in $FILES; do
-       cp -f ${SRC}/$f `dirname ${MADWIFI}/$f`/Makefile
+       cp -f ${SRC}/$f $(dirname ${MADWIFI}/$f)/Makefile
 done
 cp -f ${SRC}/ath_hal/ah_target.inc ${MADWIFI}/ath_hal
 
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"