Subject: Re: "syntax" error at startup with route/ifconfig binaries.
To: Shiva Shenoy <shiva_s@yahoo.com>
From: Jaromír <jdolecek@netbsd.org>
List: netbsd-help
Date: 03/14/2001 21:34:59
Hum, seems like ELF vs. a.out issue. What version of system
and architecture do you use ? What does 'file /sbin/ifconfig'
say ?

Jaromir


Shiva Shenoy wrote:
> I have made some changes to the /sbin/ifconfig and
> /sbin/route sources and replaced the binaries.
> 
> Now when I reboot, I get these synatx errors at
> startup:
> 
> ifconfig: 1: Syntax error: "(" unexpected
> route: 1: Syntax error: "(" unexpected
> 
> These seem to be coming from the /etc/rc.d/network
> script. The lines route -n flush and ifconfig lo0...
> seem to trigger this error. 
> 
> I have tried adding fully path names to these lines as
> /sbin/route and /sbin/ifconfig and I get the same
> errors.
> 
> Even DHCP client seems to get the same error:
> ifconfig: 1: Syntax error: "(" unexpected
> 
> However if I do a manual "dhclient" after booting up,
> dhclient works fine. route and the ifconfig commands
> work just fine after the bootup.
> 
> Any ideas on what is casuing the "syntax" errors?
> 
> Thanks
> Shiva Shenoy
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
 ***  Wanna a real operating system ? Go and get NetBSD, dammit!  ***