Commit Graph

118 Commits

Author SHA1 Message Date
itojun
6c348b2e2e add $ip6sitelocal, to control installation of reject route for fec0::/10. 2001-01-03 17:54:04 +00:00
jmc
c5ddb89d6e Patch from Hubert. aliases never get rebuilt if aliases.db is never originally generated. 2000-12-18 07:56:41 +00:00
nisimura
46d6b5a7cd More cautious about undefined hostname check in terms of what hostname(1)
returns.
2000-11-26 06:46:42 +00:00
nisimura
7fecedd930 I believe in that the facy nested quotes was intended to skip blank
lines, but am not sure it is allowed as a standard practice of the
/etc/ifconfig.xxN file.
2000-11-22 04:20:04 +00:00
wiz
f457c2158d un-break. 2000-11-21 16:12:48 +00:00
veego
a497b11b46 The new am-utils use now /etc/amd.conf and no longer the $amd_master file.
Despite that /etc/amd.conf is now the default configuration file, it needs
to be defined if you supply other options when you start amd, so add it here.
2000-11-21 12:20:12 +00:00
lukem
f8ea339f55 minor typo in previous 2000-11-21 09:59:02 +00:00
nisimura
fa16d69a56 Shell programming police for sophistication; take #2. Handle the
case when the filename expansion results in no match more gracefully.
Far less costy than invoking a new process.
2000-11-21 09:38:06 +00:00
nisimura
f412f76212 Shell programming police for sophistication. It's not necessary
to enclose `prog` backquote command substitution with double quotes
as it produces a quoted string.  Other changes are pending this time.
2000-11-21 08:39:50 +00:00
lukem
84fed31e23 start all raid[0-9].conf and raid[0-9][0-9].conf, not just raid[0-3].conf.
do in order, so that raidN.conf is started before raidNN.conf.
2000-11-17 05:43:46 +00:00
lukem
616bd9bad1 - replace IFS='.'; set -- $int; echo $2 with ${int##*.}
- can't use $configured_interfaces in network_stop(), so use `ifconfig -lu`
  instead
2000-11-17 04:19:06 +00:00
jdolecek
cb5786ecbe make this REQUIRE also cleartmp, so that it's started after /tmp
is cleared, otherwise the xfs's socket might get removed
This fixes misc/10310 by Alasdair Baird
2000-11-09 00:05:31 +00:00
nisimura
585c4dc3e6 Add missing -n option of sysctl(8) booted_kernel name retrival. 2000-10-14 07:33:39 +00:00
nisimura
17e8cec25b Use && and || for logical concatenations instead of -a/-o test operators. 2000-10-09 06:11:38 +00:00
nisimura
15bcada9c3 - Remove extra 'rm -f' since file redirect safely clobbers existing files.
- Remove one sed invocation replacing it with shell internal construct.
2000-10-09 06:01:18 +00:00
nisimura
a1cd6987aa Use find(1) to search files in straight fashion with the cost of external
command invocation.
2000-10-09 05:33:53 +00:00
nisimura
fb62520419 Avoid extra command invocation as possible, and use smart variable
substitution instead.
2000-10-09 05:30:17 +00:00
nisimura
e4d2a57704 - avoid -a or -o logical operator of test command as possible. They would
introduce syntaxical ambiguousity, and having concatenation with && or
  || costs nothing because our sh(1) has test(1) builtin.
- use elif construct to avoid dungling else-ifs.
- while-read construct does not need enclosed by a sub-shell.
- variable detection could be done in eval args=\$ifconfig_$int
- smart variable substitution occationally saves lines and extra command
  invocations.
2000-10-09 05:02:14 +00:00
lukem
641a3c9378 support loading ipf6.conf as well as ipf.conf.
inspired by [misc/11033] by Gregory McGarry <g.mcgarry@ieee.org>
2000-10-01 05:58:06 +00:00
fvdl
5927169fa7 Mention "a.out" in the start message to be clear about the purpose of
this script.
2000-09-29 17:49:25 +00:00
thorpej
c949d8af3c Always install sshd. 2000-09-28 22:16:15 +00:00
ad
d43acf7d93 Provide the option of running newsyslog at boot time; mainly for laptop
people.
2000-09-21 10:36:02 +00:00
lukem
bd11504cb2 - only perform the checkyesno on the variable named in $rcvar (rather than
implicitly using $name if $rcvar isn't set), and always perform this check,
  even when using start_cmd (et al).
  this check is performed before the pidcmd
  is run, speeding up scripts that weren't going to be run anyway.
  this should speed up booting slow systems.

- take advantage of the above and remove
	start_precmd="checkyesno foo"
  in scripts that use start_cmd.

- explicitly set rcvar=foo in the rc.d/foo scripts which have an equivalent
  rc.conf entry

- fix `rcvar' and `restart' when $rcvar isn't set.
  these above changes fix PR [bin/11027].

- when doing `force*', ignore the return value of *_precmd.
  this fixes PR [bin/10781].

- rename what sysdb provides from `databases' to `sysdb', to reflect
  the name of the script.

- improve the comments in rc.subr
2000-09-19 13:04:38 +00:00
jdolecek
1c61a5d083 On sendmail start, check modification time of /etc/mail/aliases
and couple of other common map files and regenerate appropriate
*.db files as needed.
Idea taken from RedHat 6.2.
2000-09-14 21:03:17 +00:00
lukem
42655f8ee9 REQUIRE ipnat and mountd.
fixes PRs [misc/10958] and [misc/10959] by Mike Santos <mike@ethmoid.org>
2000-09-06 01:05:43 +00:00
lukem
ebc99afce8 sort lines. add nonlocalswap, securelevel 2000-08-21 23:39:07 +00:00
lukem
e26f093e93 convert fsck.sh -> fsck (using kill -TERM $$ to stop autoboot). 2000-08-21 23:38:07 +00:00
lukem
b94d4bd809 sort REQUIRE lines 2000-08-21 23:36:50 +00:00
lukem
093b7f0ae5 remove BEFORE DAEMON 2000-08-21 23:35:41 +00:00
lukem
3f5134ff22 REQUIRE ipfilter and ipsec 2000-08-21 23:35:20 +00:00
lukem
8f896c47b9 REQUIRE bootconf' in lkm1 rather than BEFORE beforenetlkm' in bootconf.sh 2000-08-21 23:34:45 +00:00
lukem
a4517195f9 needs to run after mountcritremote, since ipnat is in /usr/sbin 2000-08-21 23:33:50 +00:00
lukem
d8b52eec28 support running /etc/rc.shutdown.local 2000-08-21 23:33:06 +00:00
lukem
ce3ce86261 migrate raising of securelevel from sysctl to separate securelevel script.
the latter depends upon aftermountlkm (but is required by DAEMON), so that
lkms may be loaded before the securelevel is raised.
noted by Rafal Boni <rafal@mediaone.net> in [bin/10780]
2000-08-21 23:31:24 +00:00
lukem
09251753f6 migrate rc.wscons to (already existing) rc.d/wscons 2000-08-21 23:01:36 +00:00
abs
31a6224745 Move options into ntp_flags, to make it possible to add '-u' without
modifying rc.d/ntpdate
2000-08-21 14:48:39 +00:00
lukem
5007ab036b - sshd has a pid file, so take advantage of it
- support `reload' arg (using default of SIGHUP)
2000-08-10 22:49:43 +00:00
thorpej
690a071d43 Need bsd.own.mk 2000-08-10 22:02:07 +00:00
lukem
0b1677de5f - provide sshd not ssh
- don't start until after LOGIN (after NETWORK is way too early)
- KNF (as such :)
2000-08-10 01:41:09 +00:00
thorpej
f0c5d26a40 Startup script glue for the Heimdal KDC. 2000-08-06 21:32:56 +00:00
itojun
e9b5e5d87c fix comment on DAD wait 2000-08-02 13:59:11 +00:00
hubertf
dcefdf7722 Adjust comment to what's actually being done 2000-08-02 11:07:51 +00:00
itojun
8451f00774 we need to sleep for IPv6 DAD period, before and after rtsol.
(they are for stability in boot-time configuration)
comment from perry.
2000-08-01 20:49:11 +00:00
jwise
d6662ec62f Change name of precmd from start_precmd to sshd_precmd. While it worked
fine as was, the result was the line `start_precmd=start_precmd' which
looked odd.  Pointed out by Bernd Ernesti.

While here, add NetBSD RCS Id.

BTW, to clarify, as people have asked:  this script does not support
pkgsrc/security/sshd -- that package comes with a perfectly fine rc script
which in addition to supporting /etc/rc.d can also be used with 1.4.X.

This script will not trivially work with the ssh package as it a.) calls
the ssh commands at the pathnames they will be installed at by usr.bin/ssh,
and b.) generates a DSA key as well as an RSA key.
2000-08-01 14:28:32 +00:00
jlam
f3983ea4df Correct apparent past-o: RSA -> DSA 2000-07-31 21:43:52 +00:00
jwise
5cfec6f11d An sshd startup script for use with usr.bin/sshd. Installation is conditional
on ${SSHDIST}, as with usr.bin/ssh itself.

This script includes a `keygen' target for regenerating RSA and DSA host keys,
and invokes this if these keys are not present when sshd is started up.
2000-07-31 20:39:41 +00:00
chuck
c438e69177 if update_motd is set, do not gratuitously force it to have an empty line
in it.  also be a bit smarter about deleting stuff from motd during
update.  it is now possible to have a one line motd just like in SunOS.
2000-07-31 00:17:05 +00:00
veego
ea8a88f609 syslog requires databases from sysdb which creates /var/run/utmp. 2000-07-29 21:50:20 +00:00
lukem
392130e304 move recreating /var/run/utmp from mountcritlocal (where /var/run is
purged but /usr/bin/install is not available) to sysdb.
problem noted by Matthias Drochner.
2000-07-27 13:58:49 +00:00
lukem
48b9eee5e1 * add new dummy dependancy `NETWORK' to be REQUIREd by services which need
networking to be operational before starting, and use as appropriate.
  NETWORK depends upon network and dhclient.
* move the guts of systemfs into mountcritlocal
* replace the dependancy on systemfs with mountcritremote, and remove the
  former.
* SERVERS now also depends upon ppp

Notes:
* dhclient (and others) needs /var to be a $critical_filesystem_beforenet
* dhclient now starts before syslogd (because the latter needs /usr, and
  /usr might need dhclient to be mounted)

Should fix PRs:
    [install/9853] [bin/10002] [misc/10349] [port-i386/10633] [misc/10641]
2000-07-26 00:11:48 +00:00