X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/267cc36546d4741ed2b1bf63f6cae18bbfa3b2e2..b730e774733c0ed40ef5fe40332be1152f14a8e1:/scripts/rstrip.sh diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 6dd44f2ed..5efc86652 100755 --- a/scripts/rstrip.sh +++ b/scripts/rstrip.sh @@ -45,7 +45,7 @@ find $TARGETS -type f -a -exec file {} \; | \ IFS=":" while read F S; do echo "$SELF: $F:$S" - [ "${F##*\.}" = "o" -o "${F##*\.}" = "ko" ] && { + [ "${S}" = "relocatable" ] && { eval "$STRIP_KMOD -w -K '__param*' -K '__mod*' $(find_modparams "$F")$F" } || { eval "$STRIP $F"