r2239 - in trunk/vendors/Nintendo
dslinux_sonny_jim at dslinux.in-berlin.de
dslinux_sonny_jim at dslinux.in-berlin.de
Sat Apr 19 03:50:48 CEST 2008
Author: sonny_jim
Date: 2008-04-19 03:50:48 +0200 (Sat, 19 Apr 2008)
New Revision: 2239
Log:
Add script to shutdown DLDI-EXT2 build properly
Modified: trunk/vendors/Nintendo/DLDI-EXT2/README
===================================================================
--- trunk/vendors/Nintendo/DLDI-EXT2/README 2008-04-18 13:47:29 UTC (rev 2238)
+++ trunk/vendors/Nintendo/DLDI-EXT2/README 2008-04-19 01:50:48 UTC (rev 2239)
@@ -5,3 +5,5 @@
Use fakeroot to build as I haven't worked out why mknod hasn't got the right permissions.
Once built, copy images/dslinux.nds to /dev/dldi1 and extract AS ROOT images/dslinux-ext2-data.tgz to /dev/dldi2.
+
+To shutdown, use the provided /etc/rc.d/shutdown to avoid filesystem damage
Modified: trunk/vendors/Nintendo/DLDI-EXT2/config.uClibc
===================================================================
--- trunk/vendors/Nintendo/DLDI-EXT2/config.uClibc 2008-04-18 13:47:29 UTC (rev 2238)
+++ trunk/vendors/Nintendo/DLDI-EXT2/config.uClibc 2008-04-19 01:50:48 UTC (rev 2239)
@@ -48,7 +48,7 @@
WARNINGS="-Wall"
KERNEL_SOURCE="$(ROOTDIR)/$(LINUXDIR)/."
UCLIBC_UCLINUX_BROKEN_MUNMAP=y
-EXCLUDE_BRK=y
+EXCLUDE_BRK=n
C_SYMBOL_PREFIX=""
HAVE_DOT_CONFIG=y
Modified: trunk/vendors/Nintendo/DLDI-EXT2/issue
===================================================================
--- trunk/vendors/Nintendo/DLDI-EXT2/issue 2008-04-18 13:47:29 UTC (rev 2238)
+++ trunk/vendors/Nintendo/DLDI-EXT2/issue 2008-04-19 01:50:48 UTC (rev 2239)
@@ -10,4 +10,4 @@
[36mhttp://www.dslinux.org/[0m
This is the DLDI-EXT2 version.
-[1;31mYou must type "poweroff" before turning off the DS.[0m
+[1;31mYou must type "/etc/rc.d/shutdown" before turning off the DS.[0m
Modified: trunk/vendors/Nintendo/DLDI-EXT2/rc
===================================================================
--- trunk/vendors/Nintendo/DLDI-EXT2/rc 2008-04-18 13:47:29 UTC (rev 2238)
+++ trunk/vendors/Nintendo/DLDI-EXT2/rc 2008-04-19 01:50:48 UTC (rev 2239)
@@ -1,8 +1,22 @@
#!/bin/sh
+#Load defaults if rc.conf exists
+if [ -e /etc/rc.conf ]
+then
+ . /etc/rc.conf
+fi
mount -t proc none /proc
+mount -t ramfs none /tmp
+mount -t ramfs none /var/run
+if [ "$checkfsonboot" = "YES" ]
+then
+ echo "Checking filesystems"
+ e2fsck -n /dev/dldi2
+ dosfsck /dev/dldi1
+else
+ echo "Not checking filesystems on boot"
+ echo "set checkfsonboot="YES" in /etc/rc.conf to enable"
+fi
mount -t vfat -o noatime /dev/dldi1 /media
-mount -t ramfs none /var/run
-mount -t ramfs none /tmp
. /etc/rc.common
Added: trunk/vendors/Nintendo/common/rc.d/shutdown
Property changes on: trunk/vendors/Nintendo/common/rc.d/shutdown
___________________________________________________________________
Name: svn:executable
+ *
More information about the dslinux-commit
mailing list