diff options
author | peter <peter@FreeBSD.org> | 2000-05-01 10:43:06 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-05-01 10:43:06 +0000 |
commit | 4c69e0f4d7e4fad2294ba277c71c27ae4fb5534a (patch) | |
tree | ca74d9b8847e9f73847edc3f47fa720678a27e3c /etc | |
parent | e40c842b1a4e5ea3f40c8e73232146022c74cb5f (diff) | |
download | FreeBSD-src-4c69e0f4d7e4fad2294ba277c71c27ae4fb5534a.zip FreeBSD-src-4c69e0f4d7e4fad2294ba277c71c27ae4fb5534a.tar.gz |
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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/MAKEDEV | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 2816b4d0..4278f9f 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 |