When you say 'log the console', do you mean write it to a file? How would one do that?

Anyhow, I turned on debugging and even inserted the following lines right in front of the 'ifconfig' command in rcS as follows:

echo "D: $DEVICE"
echo "IP: $IPADDR"
echo "MASK: $NETMASK"
echo "BD $BROADCAST"
if [ ! -z $IPADDR ]; then
# configure interface and add default gateway
echo "ifconfig $DEVICE $IPADDR netmask $NETMASK broadcast $BROADCAST"
ifconfig $DEVICE $IPADDR netmask $NETMASK broadcast $BROADCAST
if [ $? != 0 ]; then


and saw something like the following in my output (this had to be typed in by hand so there may be a few typos):

start_network
echo D:  D: eth0
D: eth0
echo IP: 16.118.73.119
IP: 16.118.73.119
echo MASK: 255.255.240.0
MASK: 255.255.240.0
echo BD 16.118.47.255
BD 16.118.47.255
][ ! -z 16.118.73.119
   broadcast 16.118.47.255
   broadcast 16.118.47.255
 broadcast 16.118.47.255
SIOCSIFADDR:  no such device
NETMASK:  no such device
BRDADDR:   no such device

this is a puzzlement because the 'if' statement isn't echoing. it looks like there's a CR but no linefeed and the ' ]' may be overwriting the 'if'. but what happened to the trainling semi-colon and the word 'then'? as for the ifconfig command (and the preceeding echo), they're all messed up as well. this was created by editing the initrd.img that was put on the floppy by the mkautoinstalldiskette command!

-mark

dann frazier wrote:

On Mon, May 10, 2004 at 05:25:14PM -0400, Mark Seger wrote:


So what's causing this to fail and what can I do to track the problem down?



what i often do to track down such problems is to change the first line in the rcS script to: #!/bin/sh -x

and log the console during install.
noisy, but its easier to narrow a problem down w/ too much information
in front of you than to keep regening the initrd.img file for each additional
piece of info you want.




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Sisuite-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to