From: Jose V Beneyto Date: Wed, 17 Oct 2012 17:08:28 +0000 (+0000) Subject: Don't show error messages for internal find commands used in rc startup script X-Git-Url: http://gitweb/?a=commitdiff_plain;h=refs%2Fheads%2F2.7;p=initrd.git Don't show error messages for internal find commands used in rc startup script --- diff --git a/filesystem/rc b/filesystem/rc index 8fd3474..e1a8bea 100755 --- a/filesystem/rc +++ b/filesystem/rc @@ -79,14 +79,14 @@ find_and_mount_media() { echo else # configure modules - MODULES="`find /media/crux/kernel -type f -name 'modules-*.tar.*'`" + MODULES="`find /media/crux/kernel -type f -name 'modules-*.tar.*' 2>/dev/null`" if [ ! -z "$MODULES" ]; then tar -C /tmp -xf $MODULES cd /lib && ln -s /tmp/lib/* . depmod fi # configure pkgutils - PKGUTILS="`find /media/crux/core -type f -name 'pkgutils#*.pkg.tar.*'`" + PKGUTILS="`find /media/crux/core -type f -name 'pkgutils#*.pkg.tar.*' 2>/dev/null`" if [ ! -z "$PKGUTILS" ]; then tar -C /tmp -xf $PKGUTILS cd /usr/bin && ln -s /tmp/usr/bin/* .