rocrail-linux-user-en
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rocrail-linux-user-en [2020/10/08 18:11] – [Start script] rjversluis | rocrail-linux-user-en [2022/02/28 19:09] (current) – smitt48 | ||
---|---|---|---|
Line 17: | Line 17: | ||
\\ | \\ | ||
=====Start script===== | =====Start script===== | ||
+ | The provided '' | ||
+ | This provided version supports also functions of the __**[[: | ||
+ | ==== A start script from scratch === | ||
Create a start script, **startrocrail.sh** in the home directory of user **pi** by opening an editor like **vi startrocrail.sh**: | Create a start script, **startrocrail.sh** in the home directory of user **pi** by opening an editor like **vi startrocrail.sh**: | ||
<code bash> | <code bash> | ||
#!/bin/sh | #!/bin/sh | ||
- | cd /home/pi/rocrail | + | cd /home/pi/Rocrail |
/ | / | ||
</ | </ | ||
Line 76: | Line 79: | ||
====Monitor==== | ====Monitor==== | ||
- | * __**[[: | + | * __**[[: |
====SSH Shell==== | ====SSH Shell==== | ||
Line 82: | Line 85: | ||
killall rocrail | killall rocrail | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | =====Provided startrocrail.sh ===== | ||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | WS=$1 | ||
+ | PASSWORD=$2 | ||
+ | cd | ||
+ | if [ ! $1 ]; then | ||
+ | cd ~/ | ||
+ | else | ||
+ | cd ~/ | ||
+ | fi | ||
+ | ~/ | ||
+ | if [ $? -eq 70 ] | ||
+ | then | ||
+ | echo $PASSWORD | sudo -S halt -p | ||
+ | fi | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ |
rocrail-linux-user-en.1602173504.txt.gz · Last modified: 2020/10/08 18:11 by rjversluis