From 23bcf287cb0af4e92ccf4cfac963a6ca0712270c Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 25 Jan 2006 13:00:14 +0000 Subject: [PATCH] Let symlinks be in the installed set of files ; make symlink from /var/log to /usr/log. --- etc/group | 2 ++ etc/mtree.sh | 2 +- etc/mtree/minix.tree | 1 + etc/passwd | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/group b/etc/group index c00afcfeb..5ac4935ed 100755 --- a/etc/group +++ b/etc/group @@ -8,4 +8,6 @@ news:*:6: ftp:*:7: kmem:*:8: www:*:9: +driver:*:10: +server:*:11: nogroup:*:99: diff --git a/etc/mtree.sh b/etc/mtree.sh index cdc9df951..ade62a9d3 100755 --- a/etc/mtree.sh +++ b/etc/mtree.sh @@ -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 diff --git a/etc/mtree/minix.tree b/etc/mtree/minix.tree index d67eaca6b..7941ee5a2 100644 --- a/etc/mtree/minix.tree +++ b/etc/mtree/minix.tree @@ -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/ diff --git a/etc/passwd b/etc/passwd index c2371bf7a..403d5e87f 100755 --- a/etc/passwd +++ b/etc/passwd @@ -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: -- 2.44.0