CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed rc script to install modules and pkgutils
authorJose V Beneyto <sepen@crux.nu>
Thu, 31 May 2012 16:16:49 +0000 (16:16 +0000)
committerJose V Beneyto <sepen@crux.nu>
Thu, 31 May 2012 16:16:49 +0000 (16:16 +0000)
filesystem/rc

index f7b7a6f9df386986c2a61685627fe7d4f111cc97..b04fc16b05464ba86536032278ee1d5af8eaa4a7 100755 (executable)
@@ -79,15 +79,16 @@ find_and_mount_media() {
                echo
        else
                # configure modules
-               MODULES_DIR="`find /media/crux/kernel -type d -name 'modules-*'`"
-               if [ ! -z "$MODULES_DIR" ]; then
-                       ln -sf $MODULES_DIR/lib/modules /lib
+               MODULES="`find /media/crux/kernel -type d -name 'modules-*.tar.*'`"
+               if [ ! -z "$MODULES" ]; then
+                       tar -C /tmp -xf $MODULES
+                       cd /lib && ln -s /lib/* .
                        depmod
                fi
                # configure pkgutils
-               PKGUTILS="`find /media/crux/core -type f -name 'pkgutils#*.pkg.tar.gz'`"
+               PKGUTILS="`find /media/crux/core -type f -name 'pkgutils#*.pkg.tar.*'`"
                if [ ! -z "$PKGUTILS" ]; then
-                       tar -C /tmp -xzf $PKGUTILS
+                       tar -C /tmp -xf $PKGUTILS
                        cd /usr/bin && ln -s /tmp/usr/bin/* .
                        cd /etc && ln -s /tmp/etc/* .
                fi