# HG changeset patch # User Rob Landley # Date 1257717948 21600 # Node ID b0aeb3446aa5ba4ef9214eacbbda71744c798fd7 # Parent 4f7d2bfbc5fce7a49df2666c2429c279120ef32a 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.) diff -r 4f7d2bfbc5fc -r b0aeb3446aa5 sources/native/etc/group --- 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: diff -r 4f7d2bfbc5fc -r b0aeb3446aa5 sources/native/etc/mdev.conf --- /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 diff -r 4f7d2bfbc5fc -r b0aeb3446aa5 sources/native/etc/passwd --- 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 diff -r 4f7d2bfbc5fc -r b0aeb3446aa5 sources/native/sbin/init.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