diff options
Diffstat (limited to 'news/diablo/scripts/diablo.sh-sample')
-rw-r--r-- | news/diablo/scripts/diablo.sh-sample | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/news/diablo/scripts/diablo.sh-sample b/news/diablo/scripts/diablo.sh-sample index 38f4d8bc14f3..4d00b4dd3571 100644 --- a/news/diablo/scripts/diablo.sh-sample +++ b/news/diablo/scripts/diablo.sh-sample @@ -1,5 +1,17 @@ #!/bin/sh -if [ -x %%PREFIX%%/news/rc.news ] ; then - %%PREFIX%%/news/rc.news && echo -n ' diablo' -fi +case $1 in +start) + if [ -x %%PREFIX%%/news/rc.news ] ; then + %%PREFIX%%/news/rc.news && echo -n ' diablo' + fi + ;; +stop) + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |