From 6cc6cf55f96cf965947d7c0ef9721689fffd4fdb Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Thu, 31 May 2012 16:16:49 +0000 Subject: [PATCH] Fixed rc script to install modules and pkgutils --- filesystem/rc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/filesystem/rc b/filesystem/rc index f7b7a6f..b04fc16 100755 --- a/filesystem/rc +++ b/filesystem/rc @@ -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 -- 2.26.2