Add the /dev/fd symlink that is expected by more and more things.
[util-vserver.git] / scripts / vserver-build.functions
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
                ;;