Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
Recently I was having trouble with netscape unable to download webpages. I've solved the problem with "#ifconfig hme0 mtu 1492" command. The problem is that everytime I reboot, the setting is reset back to what it was? I am not familiar with scripting, but I believe you can put a script in the /etc/rc2.d dir to make the change permanet?? Does anyone have a similar script that I can use or can help with this issue?
Thanks alot,

Look at the file "/etc/rc2.d/S69inet". Line 309 is bringing up each of the network interfaces. You might try addind that line there.
295 interface_names="`/usr/bin/ls /etc/hostname.ip*.*[0-9] 2>/dev/null | \
296 /usr/bin/grep '/etc/hostname\.ip6\{0,1\}\.'`"
297 if [ -n "$interface_names" ]; then
298 (
299 echo "configuring IPv4 tunnels:\c"
300 # Extract the part after the first '.'
301 set -- `for intr in $interface_names; do \
302 /usr/bin/expr //$intr : '[^.]*\.\(.*\)$'; done`
303 while [ $# -ge 1 ]; do
304 # Skip empty files
305 if [ ! -s /etc/hostname\.$1 ]; then
306 shift
307 continue
308 fi
309 /usr/sbin/ifconfig $1 plumb 2>&1 >/dev/null
310 while read ifcmds; do
311 if [ -n "$ifcmds" ]; then
312 /usr/sbin/ifconfig $1 inet $ifcmds \
313 2>&1 >/dev/null
314 fi
315 done 316 echo " $1\c"
317 shift
318 done
319 echo "."
320 )
321 fi

David,
Thanks for you reply. But I am not sure what I'm suppose to put in??? I need some more help. Thanks

No problem,
Just create the script that runs whatever u want it to and put it into /etc/init.d/scriptname
link it to /etc/rc2.d/Sscriptname
this will run the script with start parameter each time the system boots.

Amir,
Hey, thanks for the reply. The thing is that i've never script'd before, so I don't have any idea on how to do this?? What I want to do is set my "mtu" to "1492" becaue everytime i rebot it gets reset. Can you give me some more help. Thanks again

#!/bin/sh
ifconfig hme0 mtu 1492name this file numerically higher than S69scriptname. Something like S99scriptname.
Alternatively, you can put the mtu 1492 after the plumb directive in line 309 of S69inet
Change line 309 to
/usr/sbin/ifconfig $1 plumb mtu 1492 2>&1 >/dev/null

![]() |
How to reconfigure Video ...
|
Motif Runtime Kit install...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |