how can i deactivate the z-way server and reactivate the bluetooth adapter on my raspberry pi 3?
Wrote the following script to start:
Code: Select all
#!/bin/bash
echo "Should the Z-Wave-Server be started?"
echo -n "[yes/no] "
read ANSWER
if [ "$ANSWER" == "yes" ]
then
echo "The server will be started..."
COMMAND="sudo /etc/init.d/z-way-server start"
$COMMAND
chromium-browser http://localhost:8083/
read -n 1 -s -r -p "Press any key to close terminal"
fi
Code: Select all
#!/bin/bash
echo "Should the Z-Wave-Server be stopped?"
echo -n "[yes/no] "
read ANSWER
if [ "$ANSWER" == "yes" ]
then
echo "The server will be stopped..."
COMMAND="sudo /etc/init.d/z-way-server stop"
$COMMAND
read -n 1 -s -r -p "Press any key to close terminal"
fi