Skip to content

Commit

Permalink
Make 'volumio vstop' work (#1428)
Browse files Browse the repository at this point in the history
* Call the correct function when vstop argument is given

No 'stop' function is defined. It's 'vstop'

* Prefix all the Volumio Service Comands with 'v'

This should reduce potential confusion between these functions and
commands related to music playback.
  • Loading branch information
xipmix authored and volumio committed Dec 22, 2017
1 parent d09ca50 commit 078131e
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ clear
[[VOLUMIO SERVICE CONTROL]]
start Starts Volumio Service
vstart Starts Volumio Service
vstop Stops Volumio Service
restart Restarts Volumio Service
vrestart Restarts Volumio Service
[[VOLUMIO DEVELOPMENT]]
Expand All @@ -55,7 +55,7 @@ plugin update updates the plugin

#VOLUMIO SERVICE CONTROLS

start() {
vstart() {
echo volumio | sudo -S systemctl start volumio.service
}

Expand Down Expand Up @@ -127,20 +127,20 @@ case "$1" in
stopairplay)
/usr/bin/curl "http://127.0.0.1:3000/api/v1/commands/?cmd=stopAirplay"
;;
start)
start
vstart)
vstart
;;
start)
start
vstart)
vstart
;;

vstop)
stop
vstop
;;

restart)
stop
start
vrestart)
vstop
vstart
;;

status)
Expand Down

0 comments on commit 078131e

Please sign in to comment.