Home | History | Annotate | Line # | Download | only in rc.d
      1  1.1    lukem #!/bin/sh
      2  1.1    lukem #
      3  1.5  mycroft # $NetBSD: pwcheck,v 1.5 2004/08/13 18:08:03 mycroft Exp $
      4  1.1    lukem #
      5  1.1    lukem 
      6  1.1    lukem # PROVIDE: pwcheck
      7  1.3    lukem # REQUIRE: mountcritremote syslogd
      8  1.4  thorpej # BEFORE:  DAEMON
      9  1.1    lukem 
     10  1.5  mycroft $_rc_subr_loaded . /etc/rc.subr
     11  1.1    lukem 
     12  1.1    lukem name="pwcheck"
     13  1.1    lukem start_cmd="pwcheck_start"
     14  1.1    lukem stop_cmd=":"
     15  1.1    lukem 
     16  1.1    lukem pwcheck_start()
     17  1.1    lukem {
     18  1.1    lukem 	#	check the password temp/lock file
     19  1.1    lukem 	#
     20  1.1    lukem 	if [ -f /etc/ptmp ]; then
     21  1.1    lukem 		logger -s -p auth.err \
     22  1.1    lukem 		    "password file may be incorrect -- /etc/ptmp exists"
     23  1.1    lukem 	fi
     24  1.1    lukem }
     25  1.1    lukem 
     26  1.2    lukem load_rc_config $name
     27  1.1    lukem run_rc_command "$1"
     28