diff options
Diffstat (limited to 'play.sh')
| -rwxr-xr-x | play.sh | 19 |
1 files changed, 19 insertions, 0 deletions
| @@ -0,0 +1,19 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # WebIOPi PiStore launch script | ||
| 3 | |||
| 4 | # Force install | ||
| 5 | #VERSION=`python -c "import webiopi; print(webiopi.VERSION)"` | ||
| 6 | #if [ "$VERSION" != "0.5.3" ]; then | ||
| 7 | # echo "Update required..." | ||
| 8 | # chmod 777 setup.sh | ||
| 9 | # sudo ./setup.sh | ||
| 10 | #fi | ||
| 11 | |||
| 12 | # Start WebIOPi service | ||
| 13 | sudo /etc/init.d/webiopi start | ||
| 14 | |||
| 15 | # Launch the browser | ||
| 16 | midori -c `pwd`/midori -a http://localhost:8000/ | ||
| 17 | |||
| 18 | # Stop WebIOPi service | ||
| 19 | sudo /etc/init.d/webiopi stop | ||
