aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
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
commit902e698c9901f8480b1eecb31b92cdf9228e0c5d (patch)
tree5bf6ab696132bf93f5e50597c3dfb269607ddb34 /scripts
parentb5b7da862a60b60bb71c4c9bdbad94be39cb1076 (diff)
downloadupstream-902e698c9901f8480b1eecb31b92cdf9228e0c5d.tar.gz
upstream-902e698c9901f8480b1eecb31b92cdf9228e0c5d.tar.bz2
upstream-902e698c9901f8480b1eecb31b92cdf9228e0c5d.zip
add a workaround to rstrip restoring exec perms when they got changed by sstrip
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15312 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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