← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #76447]: 9.04, ethernet card not initializing properly sometimes?

 

Question #76447 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/76447

    Status: Open => Answered

actionparsnip proposed the following answer:
that is fine. Put the command you executed in a shell script and then
add it to her gnome logon. It will autolaunch each time and resolve the
issue.

Having to do that ach time is a pain, as is having to load kernel
modules for your desired hardware, this is also done automatically.

You just have to add an extra thing to be automatically ran and it will
fix it.

This is now simple as we know the command works. If you had just done it
instead of all this emotional stuff we could have been done 24 ours ago.
oh well.

run:

gksudo gedit /usr/bin/fixlan

paste this code:


#!/bin/sh
/etc/init.d/hal restart
/etc/init.d/networking stop
sleep 5
/etc/init.d/networking start
dhclient eth0

Save the file and close gedit.

then run:

chmod +x /usr/bin/fixlan

now run:

gksudo gedit  /etc/rc.local

and add this line:

/usr/bin/fixlan

above the line that says

exit 0

save the new file and close gedit

now when you reboot it will be ran just before the X server loads. Your
wife will not have to do anything technical or anything like that, it
will be fixed automatically which is what I have been telling you all
this time but you would not stop harping on about non technical users
instead of getting on with what I asked.

Let me know how you go.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.