X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=scripts%2Fstrip-kmod.sh;h=13e6b58007f92fa870afcb58da9ac88df7957c19;hb=6e344be124e4213ca49ec0936b06efde1aa379c3;hp=2a75e39821121b7992f3ba66687077fa7a649a74;hpb=d16a17a54c526cecd8c411334a2d8c615fe32f71;p=openwrt.git diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh index 2a75e39821..13e6b58007 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"