<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt"><div style="" class=""><span style="" class="">Hier das Ergebnis:<br></span></div><div style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class=""><span style="" class="">pi@raspberrypi ~ $ sudo cat /etc/rc.local<br style="" class="">#!/bin/sh -e<br style="" class="">#<br style="" class=""># rc.local<br style="" class="">#<br style="" class=""># This script is executed at the end of each multiuser runlevel.<br style="" class=""># Make sure that the script will "exit 0" on success or any other<br style="" class=""># value on error.<br style="" class="">#<br style="" class=""># In order to enable or disable this
script just change the execution<br style="" class=""># bits.<br style="" class="">#<br style="" class=""># By default this script does nothing.<br style="" class=""><br style="" class=""># Print the IP address<br style="" class="">_IP=$(hostname -I) || true<br style="" class="">if [ "$_IP" ]; then<br style="" class=""> printf "My IP address is %s\n" "$_IP"<br style="" class="">fi<br style="" class=""><br style="" class=""><br style="" class=""><br style="" class="">export LOG=/var/log/rc.local.log<br style="" class=""><br style="" class=""># Part of S0/Impulse to Volkszaehler 'RaspberryPI deamon'<br style="" class=""><br style="" class="">#for i in 17 18 22 23 24 27<br style="" class="">for i in 17 18 22 23 24 10<br style="" class="">do<br style="" class=""> echo init gpio $i<br style="" class=""> echo init gpio $i >>$LOG<br style="" class=""> echo $i > /sys/class/gpio/export 2>>$LOG && echo "in" >
/sys/class/gpio/gpio$i /direction 2>>$LOG && echo "rising" > /sys/class/gpio/gpio$i/edge 2>>$LOG<br style="" class="">done<br style="" class=""><br style="" class="">## Test für RGr - just ignore<br style="" class="">#for i in 24 10 9<br style="" class="">#do<br style="" class=""># echo $i > /sys/class/gpio/export && echo "in" >
/sys/class/gpio/gpio$i/direct ion && echo "falling" > /sys/class/gpio/gpio$i/edge<br style="" class="">#done<br style="" class=""><br style="" class="">##for extension with Relais<br style="" class="">#for i in 11 8 7<br style="" class="">#do<br style="" class=""># echo init gpio $i<br style="" class=""># echo $i > /sys/class/gpio/export<br style="" class=""># echo "out" > /sys/class/gpio/gpio$i/direction<br style="" class=""># chmod -R a+w /sys/class/gpio/gpio$1/<br style="" class="">#done<br style="" class=""><br style="" class=""># Part of
DS2482 I2C 1-Wire Master to Volkszaehler 'RaspberryPI daemon'.<br style="" class=""><br style="" class="">#echo init Raspberry Rev1<br style="" class="">#echo init Raspberry Rev1 >>$LOG<br style="" class="">#echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-0/new_device<br style="" class="">#echo ds2482 0x19 > /sys/bus/i2c/devices/i2c-0/new_device<br style="" class="">#echo ds2482 0x1a > /sys/bus/i2c/devices/i2c-0/new_device<br style="" class=""><br style="" class="">echo init Raspberry Rev2<br style="" class="">echo init Raspberry Rev2 >>$LOG<br style="" class="">echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device 2>$LOG<br style="" class="">#echo ds2482 0x19 > /sys/bus/i2c/devices/i2c-1/new_device 2>$LOG<br style="" class="">#echo ds2482 0x1a > /sys/bus/i2c/devices/i2c-1/new_device 2>$LOG<br style="" class=""><br style="" class="">echo owfs<br style="" class="">echo owfs >>$LOG<br style="" class="">owfs
>>$LOG 2>>$LOG<br style="" class=""><br style="" class="">echo $(date) - durchgelaufen >>$LOG<br style="" class="">echo $(date) >>/tmp/rc.local-durchgelaufen<br style="" class="">exit 0<br style="" class=""></span></div><div style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class=""><span style="" class="">Gruß</span></div><div style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class=""><span style="" class="">Peter<br style="" class=""></span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue-Light, Helvetica Neue
Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 8pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <font style="" class="" face="Arial" size="2"> Udo1 <udo1@gmx.net> schrieb am 16:25 Sonntag, 24.August 2014:<br style="" class=""> </font> </div> <blockquote class="" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <br style="" class=""><br style="" class=""> <div style="" class=""><br style="" class="" clear="none">Am 24.08.2014 16:09, schrieb Peter:<br style="" class="" clear="none">> /etc/rc.local.<br style="" class="" clear="none">> Für mich steht da nichts drin aber es wird trotzdem nichts bzw. nur <br style="" class="" clear="none">> ein fester Wert angezeigt im frontend.<br style="" class="" clear="none">><br style="" class=""
clear="none">Mach mal ein "sudo cat /etc/rc.local" und zeig mal das Ergebnis.<br style="" class="" clear="none"><br style="" class="" clear="none">Anscheinend läuft vzlogger aber auch nicht bei dir, weil sudo killall <br style="" class="" clear="none">vzlogger bringt ja: vzlogger: no process found<br style="" class="" clear="none"><br style="" class="" clear="none">> das mit dem ausschneiden und einfügen klappt bei mir nicht, <br style="" class="" clear="none">Nimm mal PuTTy als Client zum Einloggen, dann klappt es auch mit copy <br style="" class="" clear="none">und paste. <a style="" class="" shape="rect" href="http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe" target="_blank">http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe</a><div style="" class="" id="yqtfd11405"><br style="" class="" clear="none"><br style="" class="" clear="none">Gruß<br style="" class="" clear="none">Udo<br style="" class="" clear="none"><br style=""
class="" clear="none"></div><br style="" class=""><br style="" class=""></div> </blockquote> </div> </div> </div> </div></body></html>