36 lines
782 B
Bash
36 lines
782 B
Bash
#!/bin/bash
|
|
#
|
|
# chkconfig: 2345 92 65
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: initBluetoothListener
|
|
# Required-Start: $local_fs $all
|
|
# Required-Stop: $syslog
|
|
# Default-Start: 2345
|
|
# Default-Stop:
|
|
# Short-Description: Start a bluetooth listener
|
|
# Description: Start a listening section for bluetooth, so incoming commands can behandeled
|
|
### END INIT INFO
|
|
|
|
## path symlink: /etc/rc.d/S99_init_bluetooth_listener
|
|
## path: /etc/init.d/initBluetoothListener
|
|
|
|
case $1 in
|
|
start)
|
|
echo "auto_read.sh wird gestartet"
|
|
# Starte Programm
|
|
/home/script/auto_read.sh
|
|
;;
|
|
stop)
|
|
echo "auto_read.sh wird beendet"
|
|
# Beende Programm
|
|
killall auto_read.sh
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|