aboutsummaryrefslogtreecommitdiffstats
path: root/dns/totd/files/totd.sh
blob: 9a528db444891decb4302ca45dca921dff2af2e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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