X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/6b3623eac2eddbbccdaec44d96bd86b1f156bb28..840c30e693f906b4aa54578f948ec10c32b36536:/scripts/rstrip.sh?ds=inline diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index d9d3ad21b..f71aaaf4f 100755 --- a/scripts/rstrip.sh +++ b/scripts/rstrip.sh @@ -21,6 +21,8 @@ find $TARGETS -type f -a -exec file {} \; | \ IFS=":" while read F S; do echo "$SELF: $F:$S" - eval "$STRIP $F" + [ "${F##*\.}" = "o" -o "${F##*\.}" = "ko" ] && \ + eval "$STRIP_KMOD $F" || \ + eval "$STRIP $F" done )