summaryrefslogtreecommitdiff
path: root/time/anacron/files/anacron.sh
diff options
context:
space:
mode:
Diffstat (limited to 'time/anacron/files/anacron.sh')
-rw-r--r--time/anacron/files/anacron.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/time/anacron/files/anacron.sh b/time/anacron/files/anacron.sh
new file mode 100644
index 00000000000..98161305e2b
--- /dev/null
+++ b/time/anacron/files/anacron.sh
@@ -0,0 +1,24 @@
+#! @RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: anacron.sh,v 1.1.1.1 2004/04/11 11:33:46 jmmv Exp $
+#
+# PROVIDE: anacron
+# REQUIRE: LOGIN
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="anacron"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+required_files="@PKG_SYSCONFDIR@/anacrontab"
+command_args="-t @PKG_SYSCONFDIR@/anacrontab"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ @ECHO@ -n ' ${name}'
+ ${command} ${anacron_flags} ${command_args}
+fi