]> Zhao Yanbai Git Server - minix.git/commitdiff
Let symlinks be in the installed set of files ; make symlink from /var/log to
authorBen Gras <ben@minix3.org>
Wed, 25 Jan 2006 13:00:14 +0000 (13:00 +0000)
committerBen Gras <ben@minix3.org>
Wed, 25 Jan 2006 13:00:14 +0000 (13:00 +0000)
/usr/log.

etc/group
etc/mtree.sh
etc/mtree/minix.tree
etc/passwd

index c00afcfebfb05b8c4bf3897e0c099823e58dacdf..5ac4935ed249b88d1afd0bddef523010038810f8 100755 (executable)
--- a/etc/group
+++ b/etc/group
@@ -8,4 +8,6 @@ news:*:6:
 ftp:*:7:
 kmem:*:8:
 www:*:9:
+driver:*:10:
+server:*:11:
 nogroup:*:99:
index cdc9df9512e6e6146aad87b741e91b65e0ebf068..ade62a9d365ddfa886acb43019b60f278f2722d5 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 cat $1 | while read line
-do      echo $line | awk '{ print "mkdir -p "$4" || exit 1; chmod "$1" "$4" || exit 1; chown "$2" "$4" || exit 1; chgrp "$3" "$4" || exit 1" }' | sh || exit 1
+do      echo $line | awk 'NF==4 { print "mkdir -p "$4" || exit 1; chmod "$1" "$4" || exit 1; chown "$2" "$4" || exit 1; chgrp "$3" "$4" || exit 1" } NF==3 { print "rm "$1" ; ln -s "$3" "$1" || exit 1" } ' | sh || exit 1
 done
index d67eaca6bcd0b84d7945c98b0b8b5979826dc8a4..7941ee5a29f467e0699b84c5c455ae88863a131f 100644 (file)
@@ -69,6 +69,7 @@
 755  bin     operator  /usr/src
 1777 root    operator  /usr/tmp
 755  root    operator  /var
+/var/log -> /usr/log
 755  root    operator  /usr/log
 755  root    operator  /var/run
 755    bin     operator        /usr/gnu/
index c2371bf7adf17957a0c7dbc20bc7953fc20be8e4..403d5e87f252d45007fc3707c13562fb59c0c78b 100755 (executable)
@@ -6,4 +6,6 @@ news:*:6:6:Usenet news:/usr/spool/news:
 ftp:*:7:7:Anonymous FTP:/usr/ftp:
 ast:*:8:3:Andrew S. Tanenbaum:/home/ast:
 www:*:9:9:World Wide Web:/usr/www:
+driver:*:10:10:Device Drivers:/:
+server:*:11:11:OS Servers:/:
 nobody:*:9999:99::/tmp: