head 1.7; access; symbols netbsd-10-0-RELEASE:1.7 netbsd-10-0-RC6:1.7 netbsd-10-0-RC5:1.7 netbsd-10-0-RC4:1.7 netbsd-10-0-RC3:1.7 netbsd-10-0-RC2:1.7 netbsd-10-0-RC1:1.7 netbsd-10:1.7.0.42 netbsd-10-base:1.7 netbsd-9-3-RELEASE:1.7 cjep_sun2x-base1:1.7 cjep_sun2x:1.7.0.40 cjep_sun2x-base:1.7 cjep_staticlib_x-base1:1.7 netbsd-9-2-RELEASE:1.7 cjep_staticlib_x:1.7.0.38 cjep_staticlib_x-base:1.7 netbsd-9-1-RELEASE:1.7 phil-wifi-20200421:1.7 phil-wifi-20200411:1.7 is-mlppp:1.7.0.36 is-mlppp-base:1.7 phil-wifi-20200406:1.7 netbsd-8-2-RELEASE:1.7 netbsd-9-0-RELEASE:1.7 netbsd-9-0-RC2:1.7 netbsd-9-0-RC1:1.7 phil-wifi-20191119:1.7 netbsd-9:1.7.0.34 netbsd-9-base:1.7 phil-wifi-20190609:1.7 netbsd-8-1-RELEASE:1.7 netbsd-8-1-RC1:1.7 pgoyette-compat-merge-20190127:1.7 pgoyette-compat-20190127:1.7 pgoyette-compat-20190118:1.7 pgoyette-compat-1226:1.7 pgoyette-compat-1126:1.7 pgoyette-compat-1020:1.7 pgoyette-compat-0930:1.7 pgoyette-compat-0906:1.7 netbsd-7-2-RELEASE:1.7 pgoyette-compat-0728:1.7 netbsd-8-0-RELEASE:1.7 phil-wifi:1.7.0.32 phil-wifi-base:1.7 pgoyette-compat-0625:1.7 netbsd-8-0-RC2:1.7 pgoyette-compat-0521:1.7 pgoyette-compat-0502:1.7 pgoyette-compat-0422:1.7 netbsd-8-0-RC1:1.7 pgoyette-compat-0415:1.7 pgoyette-compat-0407:1.7 pgoyette-compat-0330:1.7 pgoyette-compat-0322:1.7 pgoyette-compat-0315:1.7 netbsd-7-1-2-RELEASE:1.7 pgoyette-compat:1.7.0.30 pgoyette-compat-base:1.7 netbsd-7-1-1-RELEASE:1.7 matt-nb8-mediatek:1.7.0.28 matt-nb8-mediatek-base:1.7 perseant-stdc-iso10646:1.7.0.26 perseant-stdc-iso10646-base:1.7 netbsd-8:1.7.0.24 netbsd-8-base:1.7 prg-localcount2-base3:1.7 prg-localcount2-base2:1.7 prg-localcount2-base1:1.7 prg-localcount2:1.7.0.22 prg-localcount2-base:1.7 pgoyette-localcount-20170426:1.7 bouyer-socketcan-base1:1.7 pgoyette-localcount-20170320:1.7 netbsd-7-1:1.7.0.20 netbsd-7-1-RELEASE:1.7 netbsd-7-1-RC2:1.7 netbsd-7-nhusb-base-20170116:1.7 bouyer-socketcan:1.7.0.18 bouyer-socketcan-base:1.7 pgoyette-localcount-20170107:1.7 netbsd-7-1-RC1:1.7 pgoyette-localcount-20161104:1.7 netbsd-7-0-2-RELEASE:1.7 localcount-20160914:1.7 netbsd-7-nhusb:1.7.0.16 netbsd-7-nhusb-base:1.7 pgoyette-localcount-20160806:1.7 pgoyette-localcount-20160726:1.7 pgoyette-localcount:1.7.0.14 pgoyette-localcount-base:1.7 netbsd-7-0-1-RELEASE:1.7 netbsd-7-0:1.7.0.12 netbsd-7-0-RELEASE:1.7 netbsd-7-0-RC3:1.7 netbsd-7-0-RC2:1.7 netbsd-7-0-RC1:1.7 netbsd-5-2-3-RELEASE:1.6 netbsd-5-1-5-RELEASE:1.6 netbsd-6-0-6-RELEASE:1.6 netbsd-6-1-5-RELEASE:1.6 netbsd-7:1.7.0.10 netbsd-7-base:1.7 yamt-pagecache-base9:1.7 yamt-pagecache-tag8:1.6.50.1 netbsd-6-1-4-RELEASE:1.6 netbsd-6-0-5-RELEASE:1.6 tls-earlyentropy:1.7.0.8 tls-earlyentropy-base:1.7 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7 riastradh-drm2-base3:1.7 netbsd-6-1-3-RELEASE:1.6 netbsd-6-0-4-RELEASE:1.6 netbsd-5-2-2-RELEASE:1.6 netbsd-5-1-4-RELEASE:1.6 netbsd-6-1-2-RELEASE:1.6 netbsd-6-0-3-RELEASE:1.6 netbsd-5-2-1-RELEASE:1.6 netbsd-5-1-3-RELEASE:1.6 netbsd-6-1-1-RELEASE:1.6 riastradh-drm2-base2:1.7 riastradh-drm2-base1:1.7 riastradh-drm2:1.7.0.2 riastradh-drm2-base:1.7 netbsd-6-1:1.6.0.62 netbsd-6-0-2-RELEASE:1.6 netbsd-6-1-RELEASE:1.6 khorben-n900:1.7.0.6 netbsd-6-1-RC4:1.6 netbsd-6-1-RC3:1.6 agc-symver:1.7.0.4 agc-symver-base:1.7 netbsd-6-1-RC2:1.6 netbsd-6-1-RC1:1.6 yamt-pagecache-base8:1.7 netbsd-5-2:1.6.0.60 netbsd-6-0-1-RELEASE:1.6 yamt-pagecache-base7:1.7 netbsd-5-2-RELEASE:1.6 netbsd-5-2-RC1:1.6 matt-nb6-plus-nbase:1.6 yamt-pagecache-base6:1.6 netbsd-6-0:1.6.0.58 netbsd-6-0-RELEASE:1.6 netbsd-6-0-RC2:1.6 tls-maxphys:1.6.0.56 tls-maxphys-base:1.7 matt-nb6-plus:1.6.0.54 matt-nb6-plus-base:1.6 netbsd-6-0-RC1:1.6 yamt-pagecache-base5:1.6 yamt-pagecache-base4:1.6 netbsd-6:1.6.0.52 netbsd-6-base:1.6 netbsd-5-1-2-RELEASE:1.6 netbsd-5-1-1-RELEASE:1.6 yamt-pagecache-base3:1.6 yamt-pagecache-base2:1.6 yamt-pagecache:1.6.0.50 yamt-pagecache-base:1.6 cherry-xenmp:1.6.0.48 cherry-xenmp-base:1.6 bouyer-quota2-nbase:1.6 bouyer-quota2:1.6.0.46 bouyer-quota2-base:1.6 matt-mips64-premerge-20101231:1.6 matt-nb5-mips64-premerge-20101231:1.6 matt-nb5-pq3:1.6.0.44 matt-nb5-pq3-base:1.6 netbsd-5-1:1.6.0.42 netbsd-5-1-RELEASE:1.6 netbsd-5-1-RC4:1.6 matt-nb5-mips64-k15:1.6 netbsd-5-1-RC3:1.6 netbsd-5-1-RC2:1.6 netbsd-5-1-RC1:1.6 netbsd-5-0-2-RELEASE:1.6 matt-nb5-mips64-premerge-20091211:1.6 matt-premerge-20091211:1.6 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.6 matt-nb4-mips64-k7-u2a-k9b:1.6 matt-nb5-mips64-u1-k1-k5:1.6 matt-nb5-mips64:1.6.0.40 netbsd-5-0-1-RELEASE:1.6 jym-xensuspend-nbase:1.6 netbsd-5-0:1.6.0.38 netbsd-5-0-RELEASE:1.6 netbsd-5-0-RC4:1.6 netbsd-5-0-RC3:1.6 netbsd-5-0-RC2:1.6 jym-xensuspend:1.6.0.36 jym-xensuspend-base:1.6 netbsd-5-0-RC1:1.6 mjf-devfs2-base2:1.6 netbsd-5:1.6.0.34 netbsd-5-base:1.6 matt-mips64-base2:1.6 matt-mips64:1.6.0.32 netbsd-4-0-1-RELEASE:1.6 wrstuden-revivesa-base-3:1.6 wrstuden-revivesa-base-2:1.6 wrstuden-fixsa-newbase:1.6 wrstuden-revivesa-base-1:1.6 yamt-pf42-base4:1.6 yamt-pf42-base3:1.6 hpcarm-cleanup-nbase:1.6 yamt-pf42-baseX:1.6 yamt-pf42-base2:1.6 wrstuden-revivesa:1.6.0.30 wrstuden-revivesa-base:1.6 yamt-pf42:1.6.0.28 yamt-pf42-base:1.6 mjf-devfs2:1.6.0.26 mjf-devfs2-base:1.6 keiichi-mipv6:1.6.0.24 keiichi-mipv6-base:1.6 mjf-devfs:1.6.0.22 mjf-devfs-base:1.6 matt-armv6-nbase:1.6 matt-armv6-prevmlocking:1.6 wrstuden-fixsa-base-1:1.6 netbsd-4-0:1.6.0.20 netbsd-4-0-RELEASE:1.6 cube-autoconf:1.6.0.18 cube-autoconf-base:1.6 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.6.0.16 matt-armv6-base:1.6 matt-mips64-base:1.6 hpcarm-cleanup:1.6.0.14 hpcarm-cleanup-base:1.6 netbsd-3-1-1-RELEASE:1.6 netbsd-3-0-3-RELEASE:1.6 wrstuden-fixsa:1.6.0.12 wrstuden-fixsa-base:1.6 abandoned-netbsd-4-base:1.6 abandoned-netbsd-4:1.6.0.6 netbsd-3-1:1.6.0.8 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.10 netbsd-4-base:1.6 netbsd-3-0-1-RELEASE:1.6 netbsd-3-0:1.6.0.4 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.4 netbsd-2-1:1.4.0.8 netbsd-2-1-RELEASE:1.4 netbsd-2-1-RC6:1.4 netbsd-2-1-RC5:1.4 netbsd-2-1-RC4:1.4 netbsd-2-1-RC3:1.4 netbsd-2-1-RC2:1.4 netbsd-2-1-RC1:1.4 netbsd-2-0-2-RELEASE:1.4 netbsd-3:1.6.0.2 netbsd-3-base:1.6 netbsd-2-0-1-RELEASE:1.4 netbsd-2:1.4.0.6 netbsd-2-base:1.4 netbsd-2-0-RELEASE:1.4 netbsd-2-0-RC5:1.4 netbsd-2-0-RC4:1.4 netbsd-2-0-RC3:1.4 netbsd-2-0-RC2:1.4 netbsd-2-0-RC1:1.4 netbsd-2-0:1.4.0.4 netbsd-2-0-base:1.4 netbsd-1-6-PATCH002-RELEASE:1.4 netbsd-1-6-PATCH002:1.4 netbsd-1-6-PATCH002-RC4:1.4 netbsd-1-6-PATCH002-RC3:1.4 netbsd-1-6-PATCH002-RC2:1.4 netbsd-1-6-PATCH002-RC1:1.4 netbsd-1-6-PATCH001:1.4 netbsd-1-6-PATCH001-RELEASE:1.4 netbsd-1-6-PATCH001-RC3:1.4 netbsd-1-6-PATCH001-RC2:1.4 netbsd-1-6-PATCH001-RC1:1.4 fvdl_fs64_base:1.4 netbsd-1-6-RELEASE:1.4 netbsd-1-6-RC3:1.4 netbsd-1-6-RC2:1.4 netbsd-1-6-RC1:1.4 netbsd-1-6:1.4.0.2 netbsd-1-6-base:1.4 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH002:1.2 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-5-BETA2:1.2 netbsd-1-5-BETA:1.2 netbsd-1-5-ALPHA2:1.2 netbsd-1-5:1.2.0.4 netbsd-1-5-base:1.2 minoura-xpg4dl:1.2.0.2 minoura-xpg4dl-base:1.2 rc-d-2000-03-10:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.7 date 2012.11.10.15.08.36; author apb; state Exp; branches; next 1.6; 1.6 date 2004.11.10.05.04.51; author christos; state Exp; branches 1.6.50.1 1.6.56.1; next 1.5; 1.5 date 2004.08.13.18.08.03; author mycroft; state Exp; branches; next 1.4; 1.4 date 2002.02.12.01.23.11; author lukem; state Exp; branches; next 1.3; 1.3 date 2001.04.25.12.59.16; author lukem; state Exp; branches; next 1.2; 1.2 date 2000.05.13.08.45.10; author lukem; state Exp; branches; next 1.1; 1.1 date 2000.03.10.11.53.24; author lukem; state Exp; branches 1.1.1.1; next ; 1.6.50.1 date 2013.01.16.05.26.14; author yamt; state Exp; branches; next ; 1.6.56.1 date 2012.11.20.02.57.56; author tls; state Exp; branches; next ; 1.1.1.1 date 2000.03.10.11.53.24; author lukem; state Exp; branches; next ; desc @@ 1.7 log @Make /etc/rc.d/ttys run after /etc/rc.d/bootconf.sh, because bootconf could conceivably change /etc/ttys. @ text @#!/bin/sh # # $NetBSD: ttys,v 1.6 2004/11/10 05:04:51 christos Exp $ # # PROVIDE: tty # REQUIRE: root bootconf $_rc_subr_loaded . /etc/rc.subr name="ttyflags" start_cmd="ttyflags_start" stop_cmd=":" ttyflags_start() { # set flags on ttys. # (do early, in case they use tty for SLIP in network) # echo "Setting tty flags." ttyflags -a # setup ptys # # XXX: there may be more ptys than this; maybe use # sysctl kern.maxptys to find out how many? # if [ -c /dev/ttyp0 ]; then chmod 666 /dev/tty[p-uw-zP-T][0-9a-zA-Z] fi # only change ttyv* if ttyv0 is not reserved by a console. # if [ -c /dev/ttyv1 ]; then chmod 666 /dev/ttyv[0-9a-zA-Z] fi } load_rc_config $name run_rc_command "$1" @ 1.6 log @Don't try to chmod ptys if we have none. @ text @d3 1 a3 1 # $NetBSD: ttys,v 1.5 2004/08/13 18:08:03 mycroft Exp $ d7 1 a7 1 # REQUIRE: root @ 1.6.50.1 log @sync with (a bit old) head @ text @d3 1 a3 1 # $NetBSD: ttys,v 1.6 2004/11/10 05:04:51 christos Exp $ d7 1 a7 1 # REQUIRE: root bootconf @ 1.6.56.1 log @Resync to 2012-11-19 00:00:00 UTC @ text @d3 1 a3 1 # $NetBSD: ttys,v 1.7 2012/11/10 15:08:36 apb Exp $ d7 1 a7 1 # REQUIRE: root bootconf @ 1.5 log @Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this for a speedup by doing: $_rc_subr_loaded . /etc/rc.subr @ text @d3 1 a3 1 # $NetBSD: ttys,v 1.4 2002/02/12 01:23:11 lukem Exp $ d28 3 a30 2 chmod 666 /dev/tty[p-uw-zP-T][0-9a-zA-Z] @ 1.4 log @reset perms of ptyX[0-9a-zA-Z] instead of just ptyX[0-9a-f] @ text @d3 1 a3 1 # $NetBSD: ttys,v 1.3 2001/04/25 12:59:16 lukem Exp $ d9 1 a9 1 . /etc/rc.subr @ 1.3 log @setup tty[p-uw-zP-T]? (kern.maxpty default = 256) instead of just tty[p-s]?. on platforms which don't reserve ttyv? for console on ttyv0, set up ttyv? @ text @d3 1 a3 1 # $NetBSD: ttys,v 1.2 2000/05/13 08:45:10 lukem Exp $ d28 1 a28 1 chmod 666 /dev/tty[p-uw-zP-T][0-9a-f] d33 1 a33 1 chmod 666 /dev/ttyv[0-9a-f] @ 1.2 log @Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf. This allows us or a user to change the configuration file method in one place - rc.subr - without having to edit all of the rc.d/* files. @ text @d3 1 a3 1 # $NetBSD: ttys,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $ d26 1 a26 1 # sysctl to find out how many? d28 7 a34 1 chmod 666 /dev/tty[pqrs]* @ 1.1 log @Initial revision @ text @d3 1 a3 1 # $NetBSD$ a9 1 . /etc/rc.conf d31 1 @ 1.1.1.1 log @rc.d scripts derived from /etc/rc @ text @@