Add the /dev/fd symlink that is expected by more and more things.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 28 Jul 2008 21:44:19 +0000 (21:44 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Mon, 28 Jul 2008 21:44:19 +0000 (21:44 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2751 94cd875c-1c1d-0410-91d2-eb244daf1a30

distrib/defaults/devs
scripts/vserver-build.functions

index 641e9de..90034c2 100644 (file)
@@ -5,3 +5,4 @@ random  c 1 8 644
 urandom c 1 9 644
 tty     c 5 0 666
 ptmx    c 5 2 666
+fd      l ../proc/self/fd 777
index 3e2b4f9..7e26efd 100644 (file)
@@ -44,6 +44,9 @@ function makeDevEntry
        (f)     touch "$dst"
                chmod $4 "$dst"
                ;;
+       (l)     ln -s "$4" "$dst"
+               test -z "$5" || chmod "$5" "$dst"
+               ;;
        (*)     echo "Unknown dev-entry mode '$3'" >&2
                false
                ;;