Änderungen

795 Bytes hinzugefügt ,  20:05, 31. Jan. 2007
→‎M18 Webcam zum laufen bekommen: +newstar / new fonera hack
Zeile 139: Zeile 139:  
modprobe spca5xx
 
modprobe spca5xx
 
/var/www/webcam.sh
 
/var/www/webcam.sh
 +
 +
===NVRAM-Befehl auf Fonera nachbilden===
 +
* am besten nach <tt>/usr/sbin/nvram</tt> kopieren und mit <tt>chmod 777 nvram</tt> uasfuehrbar machen
 +
 +
<pre>
 +
#!/bin/sh
 +
 +
FILE="/etc/init.d/nvram-variablen-simulation.txt"
 +
TEMP="/etc/init.d/nvram-variablen-simulation.txt2"
 +
 +
if [ "$1" = "get" ]
 +
then             
 +
grep $2"=" $FILE
 +
exit           
 +
fi 
 +
 +
if [ "$1" = "set" ]
 +
then             
 +
grep -v $2"=" $FILE >$TEMP
 +
cat  >$FILE $TEMP       
 +
NEWSTRING=$(echo $2|sed 's/=/="/')
 +
echo >>$FILE $NEWSTRING"\""     
 +
exit                     
 +
fi 
 +
 +
if [ "$1" = "show" ]
 +
then             
 +
cat $FILE
 +
exit   
 +
fi 
 +
 +
if [ "$1" = "commit" ]
 +
then               
 +
echo "nvram_commit(): start"
 +
sleep 1                   
 +
echo "nvram_commit(): end"
 +
exit                     
 +
fi
 +
</pre>
    
===Dienst aus dem internen Kabelnetz auf den Dachrouter forwarden===
 
===Dienst aus dem internen Kabelnetz auf den Dachrouter forwarden===