--- elwix/config/rc.subr	2014/01/23 08:20:11	1.8.2.5
+++ elwix/config/rc.subr	2014/01/30 08:46:41	1.8.2.7
@@ -4,7 +4,7 @@
 # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
 #    by Michael Pounov <misho@elwix.org>
 #
-# $Id: rc.subr,v 1.8.2.5 2014/01/23 08:20:11 misho Exp $
+# $Id: rc.subr,v 1.8.2.7 2014/01/30 08:46:41 misho Exp $
 #
 
 ### Dont edit this file !!!
@@ -265,13 +265,14 @@ InstallFiles()
 # $2 = To dir
 InstallLibs()
 {
-	${CEXEC} find -X $2 ! -name "*.ko" -and -type f -and -perm +111 | \
+	${CEXEC} find -X $2 ! -name "*.ko" -and -type f | \
 		xargs readelf -d 2>&- | grep "NEEDED" | sort | uniq | \
 		awk '($2 == "(NEEDED)") { print substr($5, 2, length($5) - 2); }' \
 		2>/dev/null >${DEST}/elwix_mklibs.tmp
 	for i in $(cat ${DEST}/elwix_mklibs.tmp); do
 		echo $i
 		${CEXEC} find $1 -type f -name $i -exec install -v {} $LIBS \\\;
+		${CEXEC} chflags -f noschg $LIBS/$i
 		${CEXEC} strip -s $LIBS/$i
 	done
 #	${CEXEC} find -X $2 ! -name "*.ko" -and -type f -and -perm +111 | \