Sun Jun 14 20:01:05 2009 UTC ()
Use makedir, from M. Levinson.


(christos)
diff -r1.123 -r1.124 src/etc/MAKEDEV.tmpl

cvs diff -r1.123 -r1.124 src/etc/MAKEDEV.tmpl (expand / switch to unified diff)

--- src/etc/MAKEDEV.tmpl 2009/06/14 13:18:02 1.123
+++ src/etc/MAKEDEV.tmpl 2009/06/14 20:01:04 1.124
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1#!/bin/sh - 1#!/bin/sh -
2# $NetBSD: MAKEDEV.tmpl,v 1.123 2009/06/14 13:18:02 christos Exp $ 2# $NetBSD: MAKEDEV.tmpl,v 1.124 2009/06/14 20:01:04 christos Exp $
3# 3#
4# Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc. 4# Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
5# All rights reserved. 5# All rights reserved.
6# 6#
7# Redistribution and use in source and binary forms, with or without 7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions 8# modification, are permitted provided that the following conditions
9# are met: 9# are met:
10# 1. Redistributions of source code must retain the above copyright 10# 1. Redistributions of source code must retain the above copyright
11# notice, this list of conditions and the following disclaimer. 11# notice, this list of conditions and the following disclaimer.
12# 2. Redistributions in binary form must reproduce the above copyright 12# 2. Redistributions in binary form must reproduce the above copyright
13# notice, this list of conditions and the following disclaimer in the 13# notice, this list of conditions and the following disclaimer in the
14# documentation and/or other materials provided with the distribution. 14# documentation and/or other materials provided with the distribution.
15# 15#
@@ -1929,27 +1929,27 @@ fw*) @@ -1929,27 +1929,27 @@ fw*)
1929 mkdev fwmem${unit}.${j} c %fw_chr% $((65536 + ${unit} * 256 + ${j})) 660 ${g_operator} 1929 mkdev fwmem${unit}.${j} c %fw_chr% $((65536 + ${unit} * 256 + ${j})) 660 ${g_operator}
1930 done 1930 done
1931 ;; 1931 ;;
1932 1932
1933# create putter device and symlinks for all subsystems using it 1933# create putter device and symlinks for all subsystems using it
1934putter) 1934putter)
1935 mkdev putter c %putter_chr% 0 600 1935 mkdev putter c %putter_chr% 0 600
1936 mkdev pud c %putter_chr% 1 600 1936 mkdev pud c %putter_chr% 1 600
1937 lndev putter puffs 1937 lndev putter puffs
1938 ;; 1938 ;;
1939 1939
1940zfs) 1940zfs)
1941 mkdev zfs c %zfs_chr% 0 600 1941 mkdev zfs c %zfs_chr% 0 600
1942 mkdir -m 755 zpool 1942 mkdir zpool 755
1943 ;; 1943 ;;
1944 1944
1945midevend) 1945midevend)
1946%MI_DEVICES_END% 1946%MI_DEVICES_END%
1947local) 1947local)
1948 if [ -f "$0.local" ]; then 1948 if [ -f "$0.local" ]; then
1949 umask 0 1949 umask 0
1950 if [ -n "$count_nodes" ]; then 1950 if [ -n "$count_nodes" ]; then
1951 count_nodes=$((count_nodes + \ 1951 count_nodes=$((count_nodes + \
1952 $(linecount "$(sh "$0.local" $opts -s all)") )) 1952 $(linecount "$(sh "$0.local" $opts -s all)") ))
1953 else 1953 else
1954 sh "$0.local" $opts all 1954 sh "$0.local" $opts all
1955 fi 1955 fi