CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Fixed block devices used to find_and_mount_media in rc script, also added debug section.
authorJose V Beneyto <sepen@crux.nu>
Tue, 23 Oct 2012 13:11:15 +0000 (13:11 +0000)
committerJose V Beneyto <sepen@crux.nu>
Tue, 23 Oct 2012 13:11:15 +0000 (13:11 +0000)
filesystem/rc

index e1a8bea25672caf96f1df3729e16fc47d6b4ee1b..d03535766f0027dc0ee95113f3f4e8298ad4e6b3 100755 (executable)
@@ -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 </dev/console 2>&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