head 1.14; access; symbols netbsd-10-0-RC6:1.14 netbsd-10-0-RC5:1.14 netbsd-10-0-RC4:1.14 netbsd-10-0-RC3:1.14 netbsd-10-0-RC2:1.14 netbsd-10-0-RC1:1.14 netbsd-10:1.14.0.74 netbsd-10-base:1.14 netbsd-9-3-RELEASE:1.14 cjep_sun2x-base1:1.14 cjep_sun2x:1.14.0.72 cjep_sun2x-base:1.14 cjep_staticlib_x-base1:1.14 netbsd-9-2-RELEASE:1.14 cjep_staticlib_x:1.14.0.70 cjep_staticlib_x-base:1.14 netbsd-9-1-RELEASE:1.14 phil-wifi-20200421:1.14 phil-wifi-20200411:1.14 is-mlppp:1.14.0.68 is-mlppp-base:1.14 phil-wifi-20200406:1.14 netbsd-8-2-RELEASE:1.14 netbsd-9-0-RELEASE:1.14 netbsd-9-0-RC2:1.14 netbsd-9-0-RC1:1.14 phil-wifi-20191119:1.14 netbsd-9:1.14.0.66 netbsd-9-base:1.14 phil-wifi-20190609:1.14 netbsd-8-1-RELEASE:1.14 netbsd-8-1-RC1:1.14 pgoyette-compat-merge-20190127:1.14 pgoyette-compat-20190127:1.14 pgoyette-compat-20190118:1.14 pgoyette-compat-1226:1.14 pgoyette-compat-1126:1.14 pgoyette-compat-1020:1.14 pgoyette-compat-0930:1.14 pgoyette-compat-0906:1.14 netbsd-7-2-RELEASE:1.14 pgoyette-compat-0728:1.14 netbsd-8-0-RELEASE:1.14 phil-wifi:1.14.0.64 phil-wifi-base:1.14 pgoyette-compat-0625:1.14 netbsd-8-0-RC2:1.14 pgoyette-compat-0521:1.14 pgoyette-compat-0502:1.14 pgoyette-compat-0422:1.14 netbsd-8-0-RC1:1.14 pgoyette-compat-0415:1.14 pgoyette-compat-0407:1.14 pgoyette-compat-0330:1.14 pgoyette-compat-0322:1.14 pgoyette-compat-0315:1.14 netbsd-7-1-2-RELEASE:1.14 pgoyette-compat:1.14.0.62 pgoyette-compat-base:1.14 netbsd-7-1-1-RELEASE:1.14 matt-nb8-mediatek:1.14.0.60 matt-nb8-mediatek-base:1.14 perseant-stdc-iso10646:1.14.0.58 perseant-stdc-iso10646-base:1.14 netbsd-8:1.14.0.56 netbsd-8-base:1.14 prg-localcount2-base3:1.14 prg-localcount2-base2:1.14 prg-localcount2-base1:1.14 prg-localcount2:1.14.0.54 prg-localcount2-base:1.14 pgoyette-localcount-20170426:1.14 bouyer-socketcan-base1:1.14 pgoyette-localcount-20170320:1.14 netbsd-7-1:1.14.0.52 netbsd-7-1-RELEASE:1.14 netbsd-7-1-RC2:1.14 netbsd-7-nhusb-base-20170116:1.14 bouyer-socketcan:1.14.0.50 bouyer-socketcan-base:1.14 pgoyette-localcount-20170107:1.14 netbsd-7-1-RC1:1.14 pgoyette-localcount-20161104:1.14 netbsd-7-0-2-RELEASE:1.14 localcount-20160914:1.14 netbsd-7-nhusb:1.14.0.48 netbsd-7-nhusb-base:1.14 pgoyette-localcount-20160806:1.14 pgoyette-localcount-20160726:1.14 pgoyette-localcount:1.14.0.46 pgoyette-localcount-base:1.14 netbsd-7-0-1-RELEASE:1.14 netbsd-7-0:1.14.0.44 netbsd-7-0-RELEASE:1.14 netbsd-7-0-RC3:1.14 netbsd-7-0-RC2:1.14 netbsd-7-0-RC1:1.14 netbsd-5-2-3-RELEASE:1.14 netbsd-5-1-5-RELEASE:1.14 netbsd-6-0-6-RELEASE:1.14 netbsd-6-1-5-RELEASE:1.14 netbsd-7:1.14.0.42 netbsd-7-base:1.14 yamt-pagecache-base9:1.14 yamt-pagecache-tag8:1.14 netbsd-6-1-4-RELEASE:1.14 netbsd-6-0-5-RELEASE:1.14 tls-earlyentropy:1.14.0.40 tls-earlyentropy-base:1.14 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.14 riastradh-drm2-base3:1.14 netbsd-6-1-3-RELEASE:1.14 netbsd-6-0-4-RELEASE:1.14 netbsd-5-2-2-RELEASE:1.14 netbsd-5-1-4-RELEASE:1.14 netbsd-6-1-2-RELEASE:1.14 netbsd-6-0-3-RELEASE:1.14 netbsd-5-2-1-RELEASE:1.14 netbsd-5-1-3-RELEASE:1.14 netbsd-6-1-1-RELEASE:1.14 riastradh-drm2-base2:1.14 riastradh-drm2-base1:1.14 riastradh-drm2:1.14.0.32 riastradh-drm2-base:1.14 netbsd-6-1:1.14.0.38 netbsd-6-0-2-RELEASE:1.14 netbsd-6-1-RELEASE:1.14 khorben-n900:1.14.0.36 netbsd-6-1-RC4:1.14 netbsd-6-1-RC3:1.14 agc-symver:1.14.0.34 agc-symver-base:1.14 netbsd-6-1-RC2:1.14 netbsd-6-1-RC1:1.14 yamt-pagecache-base8:1.14 netbsd-5-2:1.14.0.30 netbsd-6-0-1-RELEASE:1.14 yamt-pagecache-base7:1.14 netbsd-5-2-RELEASE:1.14 netbsd-5-2-RC1:1.14 matt-nb6-plus-nbase:1.14 yamt-pagecache-base6:1.14 netbsd-6-0:1.14.0.28 netbsd-6-0-RELEASE:1.14 netbsd-6-0-RC2:1.14 tls-maxphys:1.14.0.26 tls-maxphys-base:1.14 matt-nb6-plus:1.14.0.24 matt-nb6-plus-base:1.14 netbsd-6-0-RC1:1.14 yamt-pagecache-base5:1.14 yamt-pagecache-base4:1.14 netbsd-6:1.14.0.22 netbsd-6-base:1.14 netbsd-5-1-2-RELEASE:1.14 netbsd-5-1-1-RELEASE:1.14 yamt-pagecache-base3:1.14 yamt-pagecache-base2:1.14 yamt-pagecache:1.14.0.20 yamt-pagecache-base:1.14 cherry-xenmp:1.14.0.18 cherry-xenmp-base:1.14 bouyer-quota2-nbase:1.14 bouyer-quota2:1.14.0.16 bouyer-quota2-base:1.14 matt-mips64-premerge-20101231:1.14 matt-nb5-mips64-premerge-20101231:1.14 matt-nb5-pq3:1.14.0.14 matt-nb5-pq3-base:1.14 netbsd-5-1:1.14.0.12 netbsd-5-1-RELEASE:1.14 netbsd-5-1-RC4:1.14 matt-nb5-mips64-k15:1.14 netbsd-5-1-RC3:1.14 netbsd-5-1-RC2:1.14 netbsd-5-1-RC1:1.14 netbsd-5-0-2-RELEASE:1.14 matt-nb5-mips64-premerge-20091211:1.14 matt-premerge-20091211:1.14 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.14 matt-nb4-mips64-k7-u2a-k9b:1.14 matt-nb5-mips64-u1-k1-k5:1.14 matt-nb5-mips64:1.14.0.10 netbsd-5-0-1-RELEASE:1.14 jym-xensuspend-nbase:1.14 netbsd-5-0:1.14.0.8 netbsd-5-0-RELEASE:1.14 netbsd-5-0-RC4:1.14 netbsd-5-0-RC3:1.14 netbsd-5-0-RC2:1.14 jym-xensuspend:1.14.0.6 jym-xensuspend-base:1.14 netbsd-5-0-RC1:1.14 mjf-devfs2-base2:1.14 netbsd-5:1.14.0.4 netbsd-5-base:1.14 matt-mips64-base2:1.14 matt-mips64:1.11.0.8 netbsd-4-0-1-RELEASE:1.6 wrstuden-revivesa-base-3:1.14 wrstuden-revivesa-base-2:1.14 wrstuden-fixsa-newbase:1.6 wrstuden-revivesa-base-1:1.14 yamt-pf42-base4:1.14 yamt-pf42-base3:1.14 hpcarm-cleanup-nbase:1.14 yamt-pf42-baseX:1.13 yamt-pf42-base2:1.14 wrstuden-revivesa:1.14.0.2 wrstuden-revivesa-base:1.14 yamt-pf42:1.13.0.8 yamt-pf42-base:1.13 mjf-devfs2:1.13.0.6 mjf-devfs2-base:1.14 keiichi-mipv6:1.13.0.4 keiichi-mipv6-base:1.13 mjf-devfs:1.13.0.2 mjf-devfs-base:1.13 matt-armv6-nbase:1.13 matt-armv6-prevmlocking:1.11 wrstuden-fixsa-base-1:1.6 netbsd-4-0:1.6.0.20 netbsd-4-0-RELEASE:1.6 cube-autoconf:1.11.0.6 cube-autoconf-base:1.11 netbsd-4-0-RC5:1.6 netbsd-4-0-RC4:1.6 netbsd-4-0-RC3:1.6 netbsd-4-0-RC2:1.6 netbsd-4-0-RC1:1.6 matt-armv6:1.11.0.4 matt-armv6-base:1.13 matt-mips64-base:1.11 hpcarm-cleanup:1.11.0.2 hpcarm-cleanup-base:1.13 netbsd-3-1-1-RELEASE:1.6 netbsd-3-0-3-RELEASE:1.6 wrstuden-fixsa:1.6.0.18 wrstuden-fixsa-base:1.6 abandoned-netbsd-4-base:1.6 abandoned-netbsd-4:1.6.0.12 netbsd-3-1:1.6.0.14 netbsd-3-1-RELEASE:1.6 netbsd-3-0-2-RELEASE:1.6 netbsd-3-1-RC4:1.6 netbsd-3-1-RC3:1.6 netbsd-3-1-RC2:1.6 netbsd-3-1-RC1:1.6 netbsd-4:1.6.0.16 netbsd-4-base:1.6 netbsd-3-0-1-RELEASE:1.6 netbsd-3-0:1.6.0.10 netbsd-3-0-RELEASE:1.6 netbsd-3-0-RC6:1.6 netbsd-3-0-RC5:1.6 netbsd-3-0-RC4:1.6 netbsd-3-0-RC3:1.6 netbsd-3-0-RC2:1.6 netbsd-3-0-RC1:1.6 netbsd-2-0-3-RELEASE:1.6 netbsd-2-1:1.6.0.8 netbsd-2-1-RELEASE:1.6 netbsd-2-1-RC6:1.6 netbsd-2-1-RC5:1.6 netbsd-2-1-RC4:1.6 netbsd-2-1-RC3:1.6 netbsd-2-1-RC2:1.6 netbsd-2-1-RC1:1.6 netbsd-2-0-2-RELEASE:1.6 netbsd-3:1.6.0.6 netbsd-3-base:1.6 netbsd-2-0-1-RELEASE:1.6 netbsd-2:1.6.0.4 netbsd-2-base:1.6 netbsd-2-0-RELEASE:1.6 netbsd-2-0-RC5:1.6 netbsd-2-0-RC4:1.6 netbsd-2-0-RC3:1.6 netbsd-2-0-RC2:1.6 netbsd-2-0-RC1:1.6 netbsd-2-0:1.6.0.2 netbsd-2-0-base:1.6 netbsd-1-6-PATCH002-RELEASE:1.5 netbsd-1-6-PATCH002:1.5 netbsd-1-6-PATCH002-RC4:1.5 netbsd-1-6-PATCH002-RC3:1.5 netbsd-1-6-PATCH002-RC2:1.5 netbsd-1-6-PATCH002-RC1:1.5 netbsd-1-6-PATCH001:1.5 netbsd-1-6-PATCH001-RELEASE:1.5 netbsd-1-6-PATCH001-RC3:1.5 netbsd-1-6-PATCH001-RC2:1.5 netbsd-1-6-PATCH001-RC1:1.5 fvdl_fs64_base:1.5 netbsd-1-6-RELEASE:1.5 netbsd-1-6-RC3:1.5 netbsd-1-6-RC2:1.5 netbsd-1-6-RC1:1.5 netbsd-1-6:1.5.0.14 netbsd-1-6-base:1.5 netbsd-1-5-PATCH003:1.5 netbsd-1-5-PATCH002:1.5 netbsd-1-5-PATCH001:1.5 netbsd-1-5-RELEASE:1.5 netbsd-1-5-BETA2:1.5 netbsd-1-5-BETA:1.5 netbsd-1-4-PATCH003:1.5 netbsd-1-5-ALPHA2:1.5 netbsd-1-5:1.5.0.12 netbsd-1-5-base:1.5 minoura-xpg4dl:1.5.0.10 minoura-xpg4dl-base:1.5 netbsd-1-4-PATCH002:1.5 wrstuden-devbsize-19991221:1.5 wrstuden-devbsize:1.5.0.8 wrstuden-devbsize-base:1.5 comdex-fall-1999:1.5.0.6 comdex-fall-1999-base:1.5 netbsd-1-4-PATCH001:1.5 netbsd-1-4-RELEASE:1.5 netbsd-1-4:1.5.0.4 netbsd-1-4-base:1.5 netbsd-1-3-PATCH003:1.5 netbsd-1-3-PATCH003-CANDIDATE2:1.5 netbsd-1-3-PATCH003-CANDIDATE1:1.5 netbsd-1-3-PATCH003-CANDIDATE0:1.5 netbsd-1-3-PATCH002:1.5 netbsd-1-3-PATCH001:1.5 netbsd-1-3-RELEASE:1.5 netbsd-1-3-BETA:1.5 netbsd-1-3:1.5.0.2 netbsd-1-3-base:1.5 netbsd-1-2-PATCH001:1.2 lite-2:1.1.1.2 lite-1:1.1.1.2 CSRG:1.1.1 netbsd-1-2-RELEASE:1.2 netbsd-1-2-BETA:1.2 netbsd-1-2-base:1.2 netbsd-1-2:1.2.0.4 netbsd-1-1-PATCH001:1.1.1.1 netbsd-1-1-RELEASE:1.1.1.1 netbsd-1-1:1.1.1.1.0.6 netbsd-1-1-base:1.1.1.1 netbsd-1-0-PATCH06:1.1.1.1 netbsd-1-0-PATCH05:1.1.1.1 netbsd-1-0-PATCH04:1.1.1.1 netbsd-1-0-PATCH03:1.1.1.1 netbsd-1-0-PATCH02:1.1.1.1 netbsd-1-0-PATCH1:1.1.1.1 netbsd-1-0-PATCH0:1.1.1.1 netbsd-1-0-RELEASE:1.1.1.1 netbsd-1-0:1.1.1.1.0.4 netbsd-1-0-base:1.1.1.1 netbsd-0-9-RELEASE:1.1.1.1 netbsd-0-9-BETA:1.1.1.1 netbsd-0-9-ALPHA2:1.1.1.1 netbsd-0-9-ALPHA:1.1.1.1 netbsd-0-9:1.1.1.1.0.2 netbsd-0-9-base:1.1.1.1 netbsd-0-8:1.1.1.1 netbsd-alpha-1:1.1.1.1 patchkit-0-2-2:1.1.1.1 WFJ-386bsd-01:1.1.1.1 WFJ-920714:1.1.1; locks; strict; comment @# @; 1.14 date 2008.04.30.13.10.49; author martin; state Exp; branches; next 1.13; 1.13 date 2007.12.20.07.30.25; author apb; state Exp; branches 1.13.2.1 1.13.6.1 1.13.8.1; next 1.12; 1.12 date 2007.12.15.17.28.09; author apb; state Exp; branches; next 1.11; 1.11 date 2007.03.03.06.36.00; author apb; state Exp; branches 1.11.4.1; next 1.10; 1.10 date 2007.03.01.20.48.26; author apb; state Exp; branches; next 1.9; 1.9 date 2007.02.28.19.45.37; author apb; state Exp; branches; next 1.8; 1.8 date 2007.02.28.13.14.38; author apb; state Exp; branches; next 1.7; 1.7 date 2007.02.26.20.44.03; author apb; state Exp; branches; next 1.6; 1.6 date 2003.12.15.08.57.52; author jdolecek; state Exp; branches; next 1.5; 1.5 date 97.07.31.04.08.15; author perry; state Exp; branches; next 1.4; 1.4 date 97.02.15.10.02.09; author mikel; state Exp; branches; next 1.3; 1.3 date 97.01.05.20.42.57; author veego; state Exp; branches; next 1.2; 1.2 date 96.05.08.17.19.17; author thorpej; state Exp; branches; next 1.1; 1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches 1.1.1.1; next ; 1.13.2.1 date 2007.12.20.07.30.25; author apb; state dead; branches; next 1.13.2.2; 1.13.2.2 date 2007.12.20.07.30.26; author apb; state Exp; branches; next ; 1.13.6.1 date 2008.06.02.13.21.19; author mjf; state Exp; branches; next ; 1.13.8.1 date 2008.05.18.12.29.47; author yamt; state Exp; branches; next ; 1.11.4.1 date 2008.01.09.01.29.48; author matt; state Exp; branches; next ; 1.1.1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 97.02.15.05.27.36; author mikel; state Exp; branches; next ; desc @@ 1.14 log @Convert TNF licenses to new 2 clause variant @ text @#!/bin/sh - # $NetBSD: MAKEDEV.local,v 1.13 2007/12/20 07:30:25 apb Exp $ # # Copyright (c) 2007 The NetBSD Foundation, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # ########################################################################### # # MAKEDEV.local can be customised to create site-specific device nodes. # By default it does nothing, except parse and accept the same command # line options as MAKEDEV. # # "MAKEDEV all" or "MAKEDEV local" will invoke "MAKEDEV.local all"; # MAKEDEV.local may also be invoked directly with other args. PATH=/sbin:/usr/sbin:/bin:/usr/bin:/rescue # makedev_local special [...] # the main loop # makedev_local() { for i do case $i in all) # Customise this. For example: #makedev_local foo ;; # Add more cases here. You can call functions defined in MAKEDEV. # For example: #foo) # mkdev foo c 0 0 600 # mkdev foo1 c 0 1 600 # ;; *) warn "$i: unknown device" ;; esac done } # # MAIN: Figure out where MAKEDEV is; load MAKEDEV as a function library; # then call makedev_main to do all the real work. # case "$0" in */*) MAKEDEV="${0%/*}/MAKEDEV" ;; *) MAKEDEV="./MAKEDEV" ;; esac [ -f "${MAKEDEV}" ] || MAKEDEV="/dev/MAKEDEV" MAKEDEV_AS_LIBRARY=1 . "${MAKEDEV}" || exit 1 makedev_main makedev_local ${1+"$@@"} @ 1.13 log @Comment out an example, which was accidentally uncommented in my previous change to this file. This is where the mystery /dev/foo came from. @ text @d2 1 a2 1 # $NetBSD: MAKEDEV.local,v 1.12 2007/12/15 17:28:09 apb Exp $ a14 7 # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the NetBSD # Foundation, Inc. and its contributors. # 4. Neither the name of The NetBSD Foundation nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. @ 1.13.2.1 log @file MAKEDEV.local was added on branch mjf-devfs on 2007-12-20 07:30:26 +0000 @ text @d1 90 @ 1.13.2.2 log @Comment out an example, which was accidentally uncommented in my previous change to this file. This is where the mystery /dev/foo came from. @ text @a0 90 #!/bin/sh - # $NetBSD: MAKEDEV.local,v 1.13 2007/12/20 07:30:25 apb Exp $ # # Copyright (c) 2007 The NetBSD Foundation, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the NetBSD # Foundation, Inc. and its contributors. # 4. Neither the name of The NetBSD Foundation nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # ########################################################################### # # MAKEDEV.local can be customised to create site-specific device nodes. # By default it does nothing, except parse and accept the same command # line options as MAKEDEV. # # "MAKEDEV all" or "MAKEDEV local" will invoke "MAKEDEV.local all"; # MAKEDEV.local may also be invoked directly with other args. PATH=/sbin:/usr/sbin:/bin:/usr/bin:/rescue # makedev_local special [...] # the main loop # makedev_local() { for i do case $i in all) # Customise this. For example: #makedev_local foo ;; # Add more cases here. You can call functions defined in MAKEDEV. # For example: #foo) # mkdev foo c 0 0 600 # mkdev foo1 c 0 1 600 # ;; *) warn "$i: unknown device" ;; esac done } # # MAIN: Figure out where MAKEDEV is; load MAKEDEV as a function library; # then call makedev_main to do all the real work. # case "$0" in */*) MAKEDEV="${0%/*}/MAKEDEV" ;; *) MAKEDEV="./MAKEDEV" ;; esac [ -f "${MAKEDEV}" ] || MAKEDEV="/dev/MAKEDEV" MAKEDEV_AS_LIBRARY=1 . "${MAKEDEV}" || exit 1 makedev_main makedev_local ${1+"$@@"} @ 1.13.6.1 log @Sync with HEAD. @ text @d2 1 a2 1 # $NetBSD$ d15 7 @ 1.13.8.1 log @sync with head. @ text @d2 1 a2 1 # $NetBSD: MAKEDEV.local,v 1.13 2007/12/20 07:30:25 apb Exp $ d15 7 @ 1.12 log @In MAKEDEV.tmpl: * Add a nooutput function to be used instead of redirecting to /dev/null, because /dev/null might not exist early in the boot sequence. This should fix a bug in which the pax autodetection failed when used from init(8) with a read-only root file system without a /dev/null. * Move most of the main program into a new makedev_main function, to allow reuse by MAKEDEV.local. In MAKEDEV.local: * Use the new makedev_main function defined in MAKEDEV. This allows MAKEDEV.local to support all the options understood by MAKEDEV, instead of only a subset. This should fix a bug in which the setup() function could try to use pax mode even though that was previously not supported. In MAKEDEV.local man page: * Update list of command line options. * Don't explain all the options, just refer to MAKEDEV(8) man page. * Remove BUGS section now that all MAKEDEV options are supported by MAKEDEV.local. @ text @d2 1 a2 1 # $NetBSD: MAKEDEV.local,v 1.11 2007/03/03 06:36:00 apb Exp $ d59 1 a59 1 makedev_local foo d64 4 a67 4 foo) mkdev foo c 0 0 600 mkdev foo1 c 0 1 600 ;; @ 1.11 log @Remove MAKEDEV.subr. This removes the risk of third party scripts (or human procedures) breaking because they assume it's enough to copy MAKEDEV fom one place to another. Let MAKEDEV return after defining shell functions but before doing any real work, if MAKEDEV_AS_LIBRARY is set. Let MAKEDEV.local load MAKEDEV as a function library via "MAKEDEV_AS_LIBRARY=1 . MAKEDEV". @ text @d2 1 a2 1 # $NetBSD: MAKEDEV.local,v 1.10 2007/03/01 20:48:26 apb Exp $ d59 1 a59 1 #makedev_local foo d64 4 a67 3 #foo) # mkdev foo c 0 0 600 # ;; d80 1 a80 3 # call the setup function to parse command line args and set some other # variables; then call the makedev_local function to create requested # devices. d90 1 a90 3 setup ${1+"$@@"} shift $((${OPTIND}-1)) makedev_local ${1+"$@@"} @ 1.11.4.1 log @sync with HEAD @ text @d2 1 a2 1 # $NetBSD$ a65 1 # mkdev foo1 c 0 1 600 d79 3 a81 1 # then call makedev_main to do all the real work. d91 3 a93 1 makedev_main makedev_local ${1+"$@@"} @ 1.10 log @If we are called as 'sh MAKEDEV ...', then we would previously have tried to do '. MAKEDEV.subr'. That doesn't work, we need to do '. ./MAKEDEV.subr' in that case. @ text @d2 1 a2 1 # $NetBSD: MAKEDEV.local,v 1.9 2007/02/28 19:45:37 apb Exp $ d62 1 a62 1 # Add more cases here. You can call functions defined in MAKEDEV.subr. d78 4 a81 3 # MAIN: Load function definitions from MAKEDEV.subr; call setup function # to parse command line args and set some other variables; then call # makedev_local function to create requested devices. d84 2 a85 2 */*) . "${0%/*}/MAKEDEV.subr" ;; *) . ./MAKEDEV.subr ;; d87 4 @ 1.9 log @Avoid using dirname(1), which is not available in installation ramdisk images. @ text @d2 1 a2 1 # $NetBSD: MAKEDEV.local,v 1.8 2007/02/28 13:14:38 apb Exp $ d82 4 a85 1 . "$0.subr" @ 1.8 log @s/MAKEDEV.tmpl/MAKEDEV.subr/ in a comment @ text @d2 1 a2 1 # $NetBSD: MAKEDEV.local,v 1.7 2007/02/26 20:44:03 apb Exp $ d82 1 a82 1 . "$(dirname "$0")/MAKEDEV.subr" @ 1.7 log @Provide a new MAKEDEV.subr file containing utility functions for use by both MAKEDEV and MAKEDEV.local. This allows MAKEDEV.local to accept the same command line arguments as MAKEDEV. The installed MAKEDEV.subr is generated from MAKEDEV.subr.tmpl. Replace the licence on MAKEDEV.local with a NetBSD licence, since I rewrote the entire file. Reviewed by christos and agc @ text @d2 1 a2 1 # $NetBSD: MAKEDEV.local,v 1.6 2003/12/15 08:57:52 jdolecek Exp $ d62 1 a62 1 # Add more cases here. You can call functions defined in MAKEDEV.tmpl. @ 1.6 log @add /rescue to the PATH to find chown if /usr is not available yet XXX chown should either be moved or we should not depend on it here fixes PR kern/23614 by Christian Biere @ text @d2 1 d4 1 a4 3 # $NetBSD: MAKEDEV.local,v 1.5 1997/07/31 04:08:15 perry Exp $ # # Copyright (c) 1991 The Regents of the University of California. d17 23 a39 19 # This product includes software developed by the University of # California, Berkeley and its contributors. # 4. Neither the name of the University nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # @@(#)MAKEDEV.local 8.1 (Berkeley) 6/9/93 d41 2 d44 1 a44 1 # Local device MAKEDEV script. d46 5 a50 2 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/rescue umask 77 d54 1 d58 2 a59 1 #sh $0 list_of_all_devices d61 7 d69 1 a69 1 echo "$0: unknown device type: $*" d71 1 d74 12 @ 1.5 log @Make MAKEDEV and MAKEDEV.local mutually consistant. Reported in pr #2596 by Tatoku Ogaito, but my fix is different from his. This is purely an aesthetic change. @ text @d3 1 a3 1 # $NetBSD: MAKEDEV.local,v 1.4 1997/02/15 10:02:09 mikel Exp $ d41 1 a41 1 PATH=/sbin:/bin:/usr/sbin:/usr/bin d43 1 @ 1.4 log @cleanup Lite-1 merge @ text @d3 1 a3 1 # $NetBSD: MAKEDEV.local,v 1.3 1997/01/05 20:42:57 veego Exp $ d47 3 d51 1 a51 1 echo 'MAKEDEV.local: no such device.' @ 1.3 log @add /usr/sbin to PATH. @ text @d3 1 a3 1 # $NetBSD: MAKEDEV.local,v 1.2 1996/05/08 17:19:17 thorpej Exp $ d36 1 a36 1 # @@(#)MAKEDEV.local 5.1 (Berkeley) 3/22/91 @ 1.2 log @RCS id police. @ text @d3 1 a3 1 # $NetBSD: $ d41 1 a41 1 PATH=/sbin:/bin:/usr/bin @ 1.1 log @Initial revision @ text @d3 2 @ 1.1.1.1 log @initial import of 386bsd-0.1 sources @ text @@ 1.1.1.2 log @import 4.4BSD-Lite @ text @d3 32 a34 1 # @@(#)MAKEDEV.local 8.1 (Berkeley) 6/9/93 @