dslinux/vendors/Nintendo/common rc.common
stsp
stsp at user.in-berlin.de
Sat Oct 28 16:38:16 CEST 2006
Update of /cvsroot/dslinux/dslinux/vendors/Nintendo/common
In directory antilope:/tmp/cvs-serv12585/vendors/Nintendo/common
Modified Files:
rc.common
Log Message:
Move /etc out of romfs completely for builds that have CF/SD storage.
This makes /etc/passwd writable and cleans up the symlink mess in /etc.
/etc/rc and /etc/inittab have been moved to the new /boot directory,
because they need to remain in romfs.
Index: rc.common
===================================================================
RCS file: /cvsroot/dslinux/dslinux/vendors/Nintendo/common/rc.common,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- rc.common 23 Aug 2006 10:02:28 -0000 1.8
+++ rc.common 28 Oct 2006 14:38:13 -0000 1.9
@@ -13,6 +13,16 @@
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
+# create /etc/passwd if it doesn't exist
+if [ ! -f /etc/passwd ]
+then
+ echo "Creating default /etc/passwd"
+ echo "root:xxSVJVBe8UDn2:0:0:Guybrush:/home:/bin/sh" > /etc/passwd
+ echo "bin:x:1:1:bin:/bin:" >> /etc/passwd
+ echo "daemon:x:2:2:daemon:/sbin:" >> /etc/passwd
+ echo "nobody:x:99:99:Nobody:/:" >> /etc/passwd
+fi
+
# setup networking
if [ "$enable_network_on_boot" = "YES" ]
then
More information about the dslinux-commit
mailing list