Remove file extension from scripts

This commit is contained in:
2015-04-05 15:03:45 +02:00
parent c4edb6f7b6
commit 70dfc9025d
2 changed files with 1 additions and 1 deletions

25
foodoor Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
set -e
PIPE_PATH=/var/run/foodoord.pipe
if [ ! -e $PIPE_PATH ]
then
echo "Pipe missing. Check daemon status."
exit 1
fi
case $1 in
close)
echo close > $PIPE_PATH
cowsay "Ich mach jetzt auf" > /var/run/banner
;;
open)
echo open > $PIPE_PATH
cowsay "Ich mach jetzt zu" > /var/run/banner
;;
*)
echo "Usage: $(basename $0) { close, open}"
exit 1
;;
esac