[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SIOCADDRT



Your bset bet would be to leave the file, but delete all of the modules
from it.  Some scripts may expect it to be there.

Bryan


On 19-Oct-99 Richard Weil wrote:
> Can /etc/modules be deleted safely?  After upgrading from 2.0.36 -> 2.2.12 I
> noticed
> that /etc/modules was trying to load modules I didn't need/want.  I ended up
> commenting everything out.  Is there any reason not to delete the file?
> 
> Richard Weil
> 
> Hans Gubitz wrote:
> 
>> On Mon, Oct 18, 1999 at 09:31:54PM -0400, Bryan Scaringe wrote:
>> > 2) As for SIOCADDRT:  your /etc/init.d/network (or is it networks)
>> >         route add -net 127.0.0.0
>> >    to:
>> >         route add -net 127.0.0.0 netmask 255.255.255.0 lo
>> >
>> I had the same problem (2.0.36->2.2.12) in my /etc/init.d/network:
>> #! /bin/sh
>> ifconfig lo 127.0.0.1
>> route add -net 127.0.0.0 netmask 255.255.255.0 lo
>> #route add -net 127.0.0.0
>> IPADDR=192.168.1.2
>> NETMASK=255.255.255.0
>> NETWORK=192.168.1.0
>> BROADCAST=192.168.1.255
>> GATEWAY=
>> ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
>> #route add -net ${NETWORK}
>> route add -net ${NETWORK} netmask 255.255.255.0 lo
>> [ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
>>
>> I changed both lines and it seems to be okay. Thanks.
>>
>> Which script creates the file network?
>>
>> I had problems too with /etc/modules. modconf did not modify the wrong
>> entries.
>> So I removed /etc/modules and did a modconf.
>>
>> Hans Gubitz
>>
>> --
>> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org <
>> /dev/null
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org <
> /dev/null


Reply to: