NetBSD/etc/rc.d/local

32 lines
404 B
Plaintext
Raw Normal View History

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
#
# 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
. /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"