--- elwix/config/rc.subr 2014/01/21 09:25:41 1.8.2.2 +++ elwix/config/rc.subr 2014/01/21 16:33:40 1.8.2.3 @@ -4,7 +4,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: rc.subr,v 1.8.2.2 2014/01/21 09:25:41 misho Exp $ +# $Id: rc.subr,v 1.8.2.3 2014/01/21 16:33:40 misho Exp $ # ### Dont edit this file !!! @@ -259,6 +259,16 @@ InstallFiles() tar -cvf - -T - | tar -C $3 -xf - cd - fi +} + +# $1 = From dir +# $2 = To dir +InstallLibs() +{ + ${CEXEC} find -X $2 ! -name "*.ko" -and -type f -and -perm +111 | \ + xargs ldd -f "%p\n" 2> /dev/null | sort | uniq | \ + sed 's|^/||' >${DEST}/elwix_mklibs.conf + InstallList ${DEST}/elwix_mklibs.conf $1 $2 } # $1 = Directory for clean