as this script is primarily for compatibility (with people's
rc.local), call it in a way that is compatible with the old behaviour: * remove the stop case * don't set $1="start" in the start case xxx: it's debatable if this script should even exist, but i digress ;-)
This commit is contained in:
parent
aa52cffef6
commit
f408de971d
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: local,v 1.2 2000/03/13 04:03:58 lukem Exp $
|
||||
# $NetBSD: local,v 1.3 2000/04/13 00:39:47 lukem Exp $
|
||||
#
|
||||
|
||||
# REQUIRE: DAEMON
|
||||
@ -11,13 +11,13 @@
|
||||
. /etc/rc.conf
|
||||
|
||||
name="local"
|
||||
start_cmd="do_local start"
|
||||
stop_cmd="do_local stop"
|
||||
start_cmd="do_local"
|
||||
stop_cmd=":"
|
||||
|
||||
do_local()
|
||||
{
|
||||
if [ -f /etc/rc.local ]; then
|
||||
set $1 ; . /etc/rc.local
|
||||
. /etc/rc.local
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user