]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/pwcheck
Merge in all the changes that Mike Makonnen has been maintaining for a
[FreeBSD/FreeBSD.git] / etc / rc.d / pwcheck
1 #!/bin/sh
2 #
3 # $NetBSD: pwcheck,v 1.4 2002/03/22 04:33:59 thorpej Exp $
4 # $FreeBSD$
5 #
6
7 # PROVIDE: pwcheck
8 # REQUIRE: mountcritremote syslogd
9 # BEFORE:  DAEMON
10 # KEYWORD: FreeBSD NetBSD
11
12 . /etc/rc.subr
13
14 name="pwcheck"
15 start_cmd="pwcheck_start"
16 stop_cmd=":"
17
18 pwcheck_start()
19 {
20         #       check the password temp/lock file
21         #
22         if [ -f /etc/ptmp ]; then
23                 logger -s -p auth.err \
24                     "password file may be incorrect -- /etc/ptmp exists"
25         fi
26 }
27
28 load_rc_config $name
29 run_rc_command "$1"