Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer:raspberry_pi_artnet [2014/06/21 22:38]
tdobes [X10 Control]
computer:raspberry_pi_artnet [2016/01/05 00:04]
tdobes
Line 120: Line 120:
  
 echo '#​!/​bin/​sh'​ >> /​usr/​local/​bin/​dmxmonitor.sh echo '#​!/​bin/​sh'​ >> /​usr/​local/​bin/​dmxmonitor.sh
-echo 'if netstat -lnt | awk '$4 ~ /:9010$/ {exit 1}'; then' ​>> /​usr/​local/​bin/​dmxmonitor.sh+echo -n "if netstat -lnt | awk '"​ >> /​usr/​local/​bin/​dmxmonitor.sh 
 +echo -n '$4 ~ /:9010$/ {exit 1}' >> /​usr/​local/​bin/​dmxmonitor.sh 
 +echo "'; then" ​>> /​usr/​local/​bin/​dmxmonitor.sh
 echo ' ​ echo -n Waiting for OLA daemon startup'​ >> /​usr/​local/​bin/​dmxmonitor.sh echo ' ​ echo -n Waiting for OLA daemon startup'​ >> /​usr/​local/​bin/​dmxmonitor.sh
-echo ' ​ while netstat -lnt | awk '$4 ~ /:9010$/ {exit 1}'; do' ​>> /​usr/​local/​bin/​dmxmonitor.sh+echo -n " ​ while netstat -lnt | awk '"​ >> /​usr/​local/​bin/​dmxmonitor.sh 
 +echo -n '$4 ~ /:9010$/ {exit 1}' >> /​usr/​local/​bin/​dmxmonitor.sh 
 +echo "'; do" ​>> /​usr/​local/​bin/​dmxmonitor.sh
 echo ' ​   echo -n .' >> /​usr/​local/​bin/​dmxmonitor.sh echo ' ​   echo -n .' >> /​usr/​local/​bin/​dmxmonitor.sh
 echo ' ​ done' >> /​usr/​local/​bin/​dmxmonitor.sh echo ' ​ done' >> /​usr/​local/​bin/​dmxmonitor.sh
Line 463: Line 467:
 sed -i -e '​s/​^host=localhost$/#​host=localhost/​g;​ s/​^user=nobody$/​user=www-data/​g;​ s|^data_dir=/​usr/​share/​mini-httpd/​html$|data_dir=/​var/​www|g'​ /​etc/​mini-httpd.conf sed -i -e '​s/​^host=localhost$/#​host=localhost/​g;​ s/​^user=nobody$/​user=www-data/​g;​ s|^data_dir=/​usr/​share/​mini-httpd/​html$|data_dir=/​var/​www|g'​ /​etc/​mini-httpd.conf
 adduser www-data dialout adduser www-data dialout
-systemctl ​start mini-httpd.service+systemctl ​restart ​mini-httpd.service
  
 cat > /​var/​www/​index.html cat > /​var/​www/​index.html
computer/raspberry_pi_artnet.txt · Last modified: 2016/01/05 00:04 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS