X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2c0ee53d13868ac9fed7dcc05523214546f315bc..69c62c65e7dcacc5b98ff80292ae0f4043010257:/scripts/rstrip.sh?ds=sidebyside diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 5efc86652..e42caa53a 100755 --- a/scripts/rstrip.sh +++ b/scripts/rstrip.sh @@ -48,7 +48,10 @@ find $TARGETS -type f -a -exec file {} \; | \ [ "${S}" = "relocatable" ] && { eval "$STRIP_KMOD -w -K '__param*' -K '__mod*' $(find_modparams "$F")$F" } || { + b=$(stat -c '%a' $F) eval "$STRIP $F" + a=$(stat -c '%a' $F) + [ "$a" = "$b" ] || chmod $b $F } done true