View previous topic :: View next topic |
Author |
Message |
nanoo Apprentice
Joined: 23 Jan 2005 Posts: 150
|
Posted: Tue Feb 15, 2005 3:18 pm Post subject: regenerating net.eth0 [SOLVED] |
|
|
Hi,
It seems that in trying to create a second network interface, and using a symbolic link between my existing /etc/init.d/net.eth0 file and a new net.eth1 file, I have somehow erased my net.eth0 file. Perhaps I created the symbolic link in the wrong order... It was a Monday.... At any rate, in trying to secure wireless internet I'm now stuck with no internet access at all.
I'm wondering whether it's possible to regenerated that net.eth0 file. Is there a package I can run that can re-write the file? I've tried using the net-setup command that I used when I was installing gentoo, but my system can't seem to find it now...
Any help with this would be greatly appreciated. Thanks very much,
nanoo
Last edited by nanoo on Wed Feb 16, 2005 3:15 pm; edited 1 time in total |
|
Back to top |
|
|
hw-tph l33t
Joined: 08 Jan 2004 Posts: 768 Location: Uppsala, Sweden
|
Posted: Tue Feb 15, 2005 4:16 pm Post subject: |
|
|
Code: | emerge -f baselayout
tar xfvj /usr/portage/distfiles/rc-scripts-${VERSION} |
Then you'll find it in the init.d directory created when you untarred the rc-scripts package.
Håkan |
|
Back to top |
|
|
nanoo Apprentice
Joined: 23 Jan 2005 Posts: 150
|
Posted: Tue Feb 15, 2005 6:09 pm Post subject: |
|
|
Ok, excellent - I'll try that when I get back from work.
Quick question: the VERSION - is it the version of the kernel, or the version of baselayout?
Thanks for your help,
nanoo |
|
Back to top |
|
|
hw-tph l33t
Joined: 08 Jan 2004 Posts: 768 Location: Uppsala, Sweden
|
Posted: Wed Feb 16, 2005 5:50 am Post subject: |
|
|
It's the version of the rc-scripts package. Don't worry, just use tab completion and you'll notice what version(s) you have.
Håkan |
|
Back to top |
|
|
nanoo Apprentice
Joined: 23 Jan 2005 Posts: 150
|
Posted: Wed Feb 16, 2005 3:12 pm Post subject: |
|
|
Thanks so much for your help - I realized as I was looking at /usr/portage/distfiles that you had probably meant the version of rc-scripts, and after unpacking I found net.eth0 and after moving it to /etc/init.d and rebooting I now have access to the internet again.
Thanks again for your help,
nanoo |
|
Back to top |
|
|
|