diff --git a/kitchenradio/app/radio.js b/kitchenradio/app/radio.js index 33331a0..affb6ba 100644 --- a/kitchenradio/app/radio.js +++ b/kitchenradio/app/radio.js @@ -102,8 +102,8 @@ exports.play = function(idx) { }*/ var Child = spawn( - App.get('tools_root')+'start_radio.sh', - [] + App.get('tools_root')+'action.sh', + ['play'] ); // listen for any response from the child diff --git a/kitchenradio/bin/action.sh b/kitchenradio/bin/action.sh new file mode 100755 index 0000000..464de6a --- /dev/null +++ b/kitchenradio/bin/action.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# V0.1 + + +### DEFINITIONS + +MY_PATH="$(pwd)" +#. $MY_PATH/bin/_inc/def_text_coloring.sh + + +### PRORGAM + +echo "Action: $1" + +case $1 in + 1) echo "play" ;; + *) echo "INVALID ACTION!" ;; +esac \ No newline at end of file