CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Don't show error messages for internal find commands used in rc startup script 2.7
authorJose V Beneyto <sepen@crux.nu>
Wed, 17 Oct 2012 17:08:28 +0000 (17:08 +0000)
committerJose V Beneyto <sepen@crux.nu>
Wed, 17 Oct 2012 17:08:28 +0000 (17:08 +0000)
filesystem/rc

index 8fd3474ac63b408b25d090a60aa1497a6e9ffed1..e1a8bea25672caf96f1df3729e16fc47d6b4ee1b 100755 (executable)
@@ -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/* .