changeset 880:b0aeb3446aa5

Some packages build differently as root than as a normal user, so add a "guest" account giving a non-root user option. Tweak mdev so it's vaguely useful. (Thanks to Vladimir Dronnikov for the idea.)
author Rob Landley <rob@landley.net>
date Sun, 08 Nov 2009 16:05:48 -0600
parents 4f7d2bfbc5fc
children 0da87d1ef528
files sources/native/etc/group sources/native/etc/mdev.conf sources/native/etc/passwd sources/native/sbin/init.sh
diffstat 4 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/native/etc/group	Sun Nov 08 04:34:06 2009 -0600
+++ b/sources/native/etc/group	Sun Nov 08 16:05:48 2009 -0600
@@ -1,1 +1,2 @@
 root:x:0:
+guest:x:1:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/native/etc/mdev.conf	Sun Nov 08 16:05:48 2009 -0600
@@ -0,0 +1,2 @@
+null 0:0 777
+(zero|random|urandom) 0:0 666
--- a/sources/native/etc/passwd	Sun Nov 08 04:34:06 2009 -0600
+++ b/sources/native/etc/passwd	Sun Nov 08 16:05:48 2009 -0600
@@ -1,1 +1,2 @@
 root:x:0:0:root:/root:/bin/sh
+guest:x:1:1:root:/root:/bin/sh
--- a/sources/native/sbin/init.sh	Sun Nov 08 04:34:06 2009 -0600
+++ b/sources/native/sbin/init.sh	Sun Nov 08 16:05:48 2009 -0600
@@ -25,7 +25,7 @@
   route add default gw 10.0.2.2
 
   # If we have no RTC, try rdate instead:
-  [ `date +%s` -lt 1000 ] && rdate 10.0.2.2 # or time-b.nist.gov
+  [ "$(date +%s)" -lt 1000 ] && rdate 10.0.2.2 # or time-b.nist.gov
 
   mount -t tmpfs /tmp /tmp