Deleted Added
full compact
pwcheck (78345) pwcheck (98184)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $NetBSD: pwcheck,v 1.2 2000/05/13 08:45:08 lukem Exp $
3# $NetBSD: pwcheck,v 1.4 2002/03/22 04:33:59 thorpej Exp $
4# $FreeBSD: head/etc/rc.d/pwcheck 98184 2002-06-13 22:14:37Z gordon $
4#
5
6# PROVIDE: pwcheck
7# REQUIRE: mountcritremote syslogd
5#
6
7# PROVIDE: pwcheck
8# REQUIRE: mountcritremote syslogd
9# BEFORE: DAEMON
10# KEYWORD: FreeBSD NetBSD
8
9. /etc/rc.subr
10
11name="pwcheck"
12start_cmd="pwcheck_start"
13stop_cmd=":"
14
15pwcheck_start()
16{
17 # check the password temp/lock file
18 #
19 if [ -f /etc/ptmp ]; then
20 logger -s -p auth.err \
21 "password file may be incorrect -- /etc/ptmp exists"
22 fi
23}
24
25load_rc_config $name
26run_rc_command "$1"
11
12. /etc/rc.subr
13
14name="pwcheck"
15start_cmd="pwcheck_start"
16stop_cmd=":"
17
18pwcheck_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
28load_rc_config $name
29run_rc_command "$1"