CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
initrd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a7abe2d
)
Fixed block devices used to find_and_mount_media in rc script, also added debug section.
author
Jose V Beneyto
<sepen@crux.nu>
Tue, 23 Oct 2012 13:11:15 +0000
(13:11 +0000)
committer
Jose V Beneyto
<sepen@crux.nu>
Tue, 23 Oct 2012 13:11:15 +0000
(13:11 +0000)
filesystem/rc
patch
|
blob
|
blame
|
history
diff --git
a/filesystem/rc
b/filesystem/rc
index e1a8bea25672caf96f1df3729e16fc47d6b4ee1b..d03535766f0027dc0ee95113f3f4e8298ad4e6b3 100755
(executable)
--- 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=""
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 'mmcblk
0p
' /proc/partitions | awk '{ print $4 }'`"
BLOCK_DEVICES="`grep -E '[sh]d' /proc/partitions | awk '{ print $4 }'`"
for DEV in $MMC_DEVICES $BLOCK_DEVICES
do
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 ""
-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
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
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
echo
echo "The system is coming up. Please wait."
echo