diff options
Diffstat (limited to 'etc/rc.d/pwcheck')
-rwxr-xr-x | etc/rc.d/pwcheck | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/etc/rc.d/pwcheck b/etc/rc.d/pwcheck new file mode 100755 index 0000000..80949e9 --- /dev/null +++ b/etc/rc.d/pwcheck @@ -0,0 +1,26 @@ +#!/bin/sh +# +# $NetBSD: pwcheck,v 1.2 2000/05/13 08:45:08 lukem Exp $ +# + +# PROVIDE: pwcheck +# REQUIRE: mountcritremote syslogd + +. /etc/rc.subr + +name="pwcheck" +start_cmd="pwcheck_start" +stop_cmd=":" + +pwcheck_start() +{ + # check the password temp/lock file + # + if [ -f /etc/ptmp ]; then + logger -s -p auth.err \ + "password file may be incorrect -- /etc/ptmp exists" + fi +} + +load_rc_config $name +run_rc_command "$1" |