2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2004-08-13 22:08:03 +04:00
|
|
|
# $NetBSD: local,v 1.7 2004/08/13 18:08:03 mycroft Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
2000-03-13 07:03:52 +03:00
|
|
|
# REQUIRE: DAEMON
|
2000-03-10 14:53:23 +03:00
|
|
|
# PROVIDE: local
|
2002-03-22 07:33:57 +03:00
|
|
|
# BEFORE: LOGIN
|
2000-08-22 03:33:06 +04:00
|
|
|
# KEYWORD: shutdown
|
2000-03-10 14:53:23 +03:00
|
|
|
|
2004-08-13 22:08:03 +04:00
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
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
|
2000-04-13 04:39:47 +04:00
|
|
|
. /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
|
|
|
|
}
|
|
|
|
|
2000-05-13 12:45:06 +04:00
|
|
|
load_rc_config $name
|
2000-03-10 14:53:23 +03:00
|
|
|
run_rc_command "$1"
|