2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2000-08-22 03:33:06 +04:00
|
|
|
# $NetBSD: local,v 1.5 2000/08/21 23:33:06 lukem 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
|
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
|
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"
|