Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/etc/rc.d pull up rev 1.5:
details: https://anonhg.NetBSD.org/src/rev/2ef851081ab1
branches: netbsd-1-5
changeset: 489214:2ef851081ab1
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Aug 23 12:11:17 2000 +0000
description:
pull up rev 1.5:
support running /etc/rc.shutdown.local
approved: thorpej
diffstat:
etc/rc.d/local | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r 61ed31d005d8 -r 2ef851081ab1 etc/rc.d/local
--- a/etc/rc.d/local Wed Aug 23 12:08:17 2000 +0000
+++ b/etc/rc.d/local Wed Aug 23 12:11:17 2000 +0000
@@ -1,24 +1,31 @@
#!/bin/sh
#
-# $NetBSD: local,v 1.4 2000/05/13 08:45:07 lukem Exp $
+# $NetBSD: local,v 1.4.4.1 2000/08/23 12:11:17 lukem Exp $
#
# REQUIRE: DAEMON
# PROVIDE: local
-# BEFORE: LOGIN
+# KEYWORD: shutdown
. /etc/rc.subr
name="local"
-start_cmd="do_local"
-stop_cmd=":"
+start_cmd="local_start"
+stop_cmd="local_stop"
-do_local()
+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"
Home |
Main Index |
Thread Index |
Old Index