summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/local
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/local')
-rwxr-xr-xetc/rc.d/local31
1 files changed, 31 insertions, 0 deletions
diff --git a/etc/rc.d/local b/etc/rc.d/local
new file mode 100755
index 0000000..8d6926f
--- /dev/null
+++ b/etc/rc.d/local
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# $NetBSD: local,v 1.4 2000/05/13 08:45:07 lukem Exp $
+#
+
+# REQUIRE: DAEMON
+# PROVIDE: local
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="local"
+start_cmd="local_start"
+stop_cmd="local_stop"
+
+local_start()
+{
+ if [ -f /etc/rc.local ]; then
+ . /etc/rc.local
+ fi
+}
+
+local_stop()
+{
+ if [ -f /etc/rc.shutdown.local ]; then
+ . /etc/rc.shutdown.local
+ fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
OpenPOWER on IntegriCloud