target: remove CONFIG_IDE_PROC_FS support as well
[openwrt.git] / scripts / rstrip.sh
index 6dd44f2..e42caa5 100755 (executable)
@@ -45,10 +45,13 @@ find $TARGETS -type f -a -exec file {} \; | \
   IFS=":"
   while read F S; do
     echo "$SELF: $F:$S"
   IFS=":"
   while read F S; do
     echo "$SELF: $F:$S"
-       [ "${F##*\.}" = "o" -o "${F##*\.}" = "ko" ] && {
+       [ "${S}" = "relocatable" ] && {
                eval "$STRIP_KMOD -w -K '__param*' -K '__mod*' $(find_modparams "$F")$F"
        } || {
                eval "$STRIP_KMOD -w -K '__param*' -K '__mod*' $(find_modparams "$F")$F"
        } || {
+               b=$(stat -c '%a' $F)
                eval "$STRIP $F"
                eval "$STRIP $F"
+               a=$(stat -c '%a' $F)
+               [ "$a" = "$b" ] || chmod $b $F
        }
   done
   true
        }
   done
   true
This page took 0.024463 seconds and 4 git commands to generate.