OggStreamer Wiki
Brought to you by:
ottinger
When the device is powered up with the button pressed - than the IP-Addr defaults to 192.168.0.123 - this is implemented by adjusting the /etc/netstart script and using the cpm tool to check whether the button is pressed. Please note that the cpm tool returns 0 when the button is pressed and it returns 1 when it is released
Here is a snipplet form the netstart script:
# Initialize the IP to an empty string IPADDR="" # Check if Button is pressed at startup # if button is pressed than default IP to 192.168.0.123 button="$(/bin/cpm -N BUTTON)" if [ $button -eq 1 ] ; then echo "Using fixed IP 192.168.0.123" /sbin/ifconfig eth0 192.168.0.123 up else # Standard Network Startup # Do we have a network configuration file?