Module Name: src
Committed By: apb
Date: Sat Sep 5 16:24:04 UTC 2009
Modified Files:
src/etc/rc.d: bootconf.sh
Log Message:
Use functions from rc.subr.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/etc/rc.d/bootconf.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.d/bootconf.sh
diff -u src/etc/rc.d/bootconf.sh:1.9 src/etc/rc.d/bootconf.sh:1.10
--- src/etc/rc.d/bootconf.sh:1.9 Sun Apr 23 23:26:26 2006
+++ src/etc/rc.d/bootconf.sh Sat Sep 5 16:24:03 2009
@@ -1,11 +1,17 @@
#!/bin/sh
#
-# $NetBSD: bootconf.sh,v 1.9 2006/04/23 23:26:26 hubertf Exp $
+# $NetBSD: bootconf.sh,v 1.10 2009/09/05 16:24:03 apb Exp $
#
# PROVIDE: bootconf
# REQUIRE: mountcritlocal
+$_rc_subr_loaded . /etc/rc.subr
+
+name="bootconf"
+start_cmd="bootconf_start"
+stop_cmd=":"
+
bootconf_start()
{
# Refer to newbtconf(8) for more information
@@ -60,6 +66,8 @@
fi
done
+ rc_print_metadata "note:Using configuration \"$conf\""
+
case $conf in
current|default)
;;
@@ -74,8 +82,5 @@
fi
}
-case "$1" in
-*start)
- bootconf_start
- ;;
-esac
+load_rc_config $name
+run_rc_command "$1"