<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1561" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>CLFS Embedded </FONT></DIV>
<DIV><FONT face=Arial size=2>Chapter 10</FONT></DIV>
<DIV><FONT face=Arial size=2>10.9.1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In this bootscript I chose 
NETWORKING=no</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In order to cut down on problems.</FONT></DIV>
<DIV><FONT face=Arial size=2>But all that happens is that it stops booting and 
tells me </FONT></DIV>
<DIV><FONT face=Arial size=2>I did not choose NETWORKING=yes</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<P>"Networking is disabled in /etc/network.conf"</P>
<P>I have been trying without success to modify the script.</P>
<P>Anyone know the correct way to disable networking?</P>
<P>I have pasted the script below.</P>
<P> </P>
<P>John</P>
<P> </P><FONT size=2>
<P>#!/bin/ash</P>
<P>#</P>
<P># Network interface(s) init script</P>
<P>#</P>
<P># config: /etc/network.conf</P>
<P># /etc/network.d/interface.[devname]</P>
<P>. /etc/rc.d/init.d/functions</P>
<P>. /etc/network.conf</P>
<P>if [ "$NETWORKING" != "yes" ]; then</P>
<P>echo "Networking is disabled in /etc/network.conf"</P>
<P>exit 0</P>
<P>fi</P>
<P>case "$1" in</P>
<P>start)</P>
<P>for i in /etc/network.d/interface.*</P>
<P>do</P>
<P>if [ -r "$i" ]; then</P>
<P>. $i</P>
<P>if [ "$DHCP" = "yes" ]; then</P>
<P>echo -n "Starting DHCP for interface $INTERFACE: "</P>
<P>udhcpc -b -i "$INTERFACE" \</P>
<P>-p "/var/run/udhcpc.$INTERFACE.pid" \</P>
<P>> /dev/null</P>
<P>else</P>
<P>echo -n "Setting up interface $INTERFACE: "</P>
<P>ifconfig "$INTERFACE" "$IPADDRESS" \</P>
<P>netmask "$NETMASK" \</P>
<P>broadcast "$BROADCAST" up</P>
<P>fi</P>
<P>check_status</P>
<P>fi</P>
<P>done</P>
<P></P>
<P>if [ "$USE_GATEWAY" = "yes" -a -n "$GATEWAY" ]; then</P>
<P>echo -n "Setting default route: "</P>
<P>route add default gw $GATEWAY</P>
<P>check_status</P>
<P>fi</P>
<P>;;</P>
<P>stop)</P>
<P>if [ "$USE_GATEWAY" = "yes" -a -n "$GATEWAY" ]; then</P>
<P>echo -n "Removing default route: "</P>
<P>route del -net 0.0.0.0</P>
<P>check_status</P>
<P>fi</P>
<P>for i in /etc/network.d/interface.*</P>
<P>do</P>
<P>if [ -r "$i" ]; then</P>
<P>. $i</P>
<P>echo -n "Shutting down interface $INTERFACE: "</P>
<P>ifconfig $INTERFACE down</P>
<P>check_status</P>
<P>if [ "$DHCP" = "yes" ]; then</P>
<P>kill `cat "/var/run/udhcpc.$INTERFACE.pid"`</P>
<P>sleep 1</P>
<P>fi</P>
<P>fi</P>
<P>done</P>
<P>;;</P>
<P>restart)</P>
<P>$0 stop</P>
<P>$0 start</P>
<P>;;</P>
<P>status)</P>
<P>ifconfig</P>
<P>route</P>
<P>;;</P>
<P>*)</P>
<P>echo "Usage: $0 {start|stop|restart|status}"</P>
<P>exit 1</P>
<P>esac</P></FONT></FONT></DIV></BODY></HTML>