From 06ba1c903dd0f5c0048209e7b3330560b1e841b5 Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Tue, 23 Oct 2012 13:11:15 +0000 Subject: [PATCH] Fixed block devices used to find_and_mount_media in rc script, also added debug section. --- filesystem/rc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/filesystem/rc b/filesystem/rc index e1a8bea..d035357 100755 --- a/filesystem/rc +++ b/filesystem/rc @@ -32,7 +32,7 @@ find_and_mount_media() { echo -e " ${BOLD}${BLUE}*${NORM} Searching for the CRUX media..." mkdir -p /media CRUXMEDIA="" - MMC_DEVICES="`grep -E 'mmcblk' /proc/partitions | awk '{ print $4 }'`" + MMC_DEVICES="`grep -E 'mmcblk0p' /proc/partitions | awk '{ print $4 }'`" BLOCK_DEVICES="`grep -E '[sh]d' /proc/partitions | awk '{ print $4 }'`" for DEV in $MMC_DEVICES $BLOCK_DEVICES do @@ -100,7 +100,7 @@ find_and_mount_media() { # echo "" -echo -e "${BOLD}CRUX-ARM 2.7.1 - ${BLUE}http://crux-arm.nu/${NORM}" +echo -e "${BOLD}CRUX-ARM 2.8 - ${BLUE}http://crux-arm.nu/${NORM}" echo "" exec >/dev/console &1 @@ -144,6 +144,12 @@ checkReturn echo -e " ${BOLD}${BLUE}*${NORM} Trying to find and mount the media installer..." find_and_mount_media +if grep -q debug /proc/cmdline; then + echo -e -n " ${BOLD}${BLUE}*${NORM} Loading debug script..." + /media/debug.sh + checkReturn +fi + echo echo "The system is coming up. Please wait." echo -- 2.26.2