From 7cb24dbb43586c1700dea1bd9898b56a392b96b7 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 1 May 2000 10:43:06 +0000 Subject: [PATCH] Fix a couple of easy cases where we make two identical devices.. one /dev/xxx and one /dev/rxxx. This changes them to a hard link so that less inodes are consumed and so that the permissions are always in sync. There are lots more of these still. --- etc/MAKEDEV | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 2816b4d03a7..4278f9f3e21 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -404,7 +404,7 @@ ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|vn*s*|wd*s*|wfd*s*) slicename=`dkitos $slice` minor=`dkminor 0 $unit $slice $dkrawpart` mknod $name$unit$slicename c $chr $minor root:operator - mknod r$name$unit$slicename c $chr $minor root:operator + ln -f $name$unit$slicename r$name$unit$slicename case $part in [a-h]) case $oldslice in @@ -416,8 +416,8 @@ ad*s*|afd*s*|amrd*s*|da*s*|fla*s*|idad*s*|md*s*|mlxd*s*|vn*s*|wd*s*|wfd*s*) partname=`dkitop $part` mknod $name$unit$slicename$partname \ c $chr $minor root:operator - mknod r$name$unit$slicename$partname \ - c $chr $minor root:operator + ln -f $name$unit$slicename$partname \ + r$name$unit$slicename$partname done ;; "") @@ -446,7 +446,7 @@ fd*) case $unit in 0|1|2|3) mknod ${name}${unit} c $chr `expr $unit '*' 64` root:operator - mknod r${name}${unit} c $chr `expr $unit '*' 64` root:operator + ln -f ${name}${unit} r${name}${unit} # Fake BSD partitions for i in a b c d e f g h do