NetBSD/etc/rc.d/local

33 lines
440 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/bin/sh
#
# $NetBSD: local,v 1.7 2004/08/13 18:08:03 mycroft 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
$_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
. /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"