aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rstrip.sh
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-04-21 01:10:21 +0000
committerNicolas Thill <nico@openwrt.org>2009-04-21 01:10:21 +0000
commit54d622a81572a18927c4bb907dd41fde6ff358c8 (patch)
tree7b6173d30adaddbab1273de45c70fbe4151a9909 /scripts/rstrip.sh
parent3fce73ce46e5f6151296cb3c8e8858c110ade928 (diff)
downloadupstream-54d622a81572a18927c4bb907dd41fde6ff358c8.tar.gz
upstream-54d622a81572a18927c4bb907dd41fde6ff358c8.tar.bz2
upstream-54d622a81572a18927c4bb907dd41fde6ff358c8.zip
add a workaround to rstrip restoring exec perms when they got changed by sstrip
SVN-Revision: 15312
Diffstat (limited to 'scripts/rstrip.sh')
-rwxr-xr-xscripts/rstrip.sh3
1 files changed, 3 insertions, 0 deletions
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