X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d16a17a54c526cecd8c411334a2d8c615fe32f71..5fe04db16c68069745b6ace80b4e0f01e1e553c0:/scripts/strip-kmod.sh diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh index 2a75e3982..13e6b5800 100755 --- a/scripts/strip-kmod.sh +++ b/scripts/strip-kmod.sh @@ -38,9 +38,10 @@ BEGIN { n = 0 } -$3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/ { +$3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/ && !def[$3] { print "--redefine-sym "$3"=_"n; n = n + 1 + def[$3] = 1 } ' > "$MODULE.tmp1"