aboutsummaryrefslogtreecommitdiff
path: root/dns/totd/files/totd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dns/totd/files/totd.sh')
-rw-r--r--dns/totd/files/totd.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/dns/totd/files/totd.sh b/dns/totd/files/totd.sh
new file mode 100644
index 000000000000..9a528db44489
--- /dev/null
+++ b/dns/totd/files/totd.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ if [ -x %PREFIX%/sbin/totd ]; then
+ %PREFIX%/sbin/totd && echo -n ' totd'
+ fi
+ ;;
+
+ stop)
+ /usr/bin/killall totd && echo -n ' totd'
+ ;;
+
+ *)
+ echo "Usage: `basename $0` { start | stop }"
+ exit 64
+ ;;
+esac