NetBSD/etc/rc.d/local

33 lines
423 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/bin/sh
#
# $NetBSD: local,v 1.6 2002/03/22 04:33:59 thorpej Exp $
2000-03-10 14:53:23 +03:00
#
# REQUIRE: DAEMON
2000-03-10 14:53:23 +03:00
# PROVIDE: local
# BEFORE: LOGIN
2000-08-22 03:33:06 +04:00
# KEYWORD: shutdown
2000-03-10 14:53:23 +03:00
. /etc/rc.subr
name="local"
2000-08-22 03:33:06 +04:00
start_cmd="local_start"
stop_cmd="local_stop"
2000-03-10 14:53:23 +03:00
2000-08-22 03:33:06 +04:00
local_start()
2000-03-10 14:53:23 +03:00
{
if [ -f /etc/rc.local ]; then
. /etc/rc.local
2000-03-10 14:53:23 +03:00
fi
}
2000-08-22 03:33:06 +04:00
local_stop()
{
if [ -f /etc/rc.shutdown.local ]; then
. /etc/rc.shutdown.local
fi
}
load_rc_config $name
2000-03-10 14:53:23 +03:00
run_rc_command "$1"