dslinux/vendors/Nintendo/RAM-DEVEL rc

amadeus dslinux_amadeus at user.in-berlin.de
Mon Oct 9 07:21:11 CEST 2006


Update of /cvsroot/dslinux/dslinux/vendors/Nintendo/RAM-DEVEL
In directory antilope:/tmp/cvs-serv9640/vendors/Nintendo/RAM-DEVEL

Modified Files:
	rc 
Log Message:
try to mount SD cards without partition table.

Index: rc
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/RAM-DEVEL/rc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rc	31 Aug 2006 11:54:45 -0000	1.1
+++ rc	9 Oct 2006 05:21:08 -0000	1.2
@@ -5,12 +5,18 @@
 if [ "$?" != "0" ]
 then
 	mount -t vfat -o noatime /dev/hda1 /media
-	# some CF cards do not have a partition table
-	# try mounting /dev/hda if mounting /dev/hda1 fails
 	if [ "$?" != "0" ]
 	then
+		# some CF cards do not have a partition table
+		# try mounting /dev/hda
 		mount -t vfat -o noatime /dev/hda /media
-		[ "$?" = "0" ] || echo "Sorry, failed to mount your CF card."
+		if [ "$?" != "0" ]
+		then
+			# some SD cards do not have a partition table
+			# try mounting /dev/mmcblk0
+			mount -t vfat -o noatime /dev/mmcblk0 /media
+			[ "$?" = "0" ] || echo "Sorry, failed to mount your CF/SD card."
+		fi
 	fi
 fi
 . /etc/rc.common




More information about the dslinux-commit mailing list