X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=scripts%2Frstrip.sh;fp=scripts%2Frstrip.sh;h=e42caa53a296f5e4245d5228711f93831141600f;hp=5efc866524b8dd63dcc23a50f92383c29f1c8ed6;hb=df14308538ee790961214231d36f2a681f7c83d6;hpb=da7b0ec272be3dc2341fa42ede3dda5647410899 diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 5efc866524..e42caa53a2 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