View previous topic :: View next topic |
Author |
Message |
mule169 n00b
Joined: 12 Oct 2004 Posts: 8
|
Posted: Fri Oct 29, 2004 4:08 pm Post subject: net.eth1 init script |
|
|
Hello all,
I'm not sure if this would be the correct place to post this question... but during my install i was a bonehead and deleted the net.eth0 init scripts when configuring my network.
I was wondering if there was a way to generate these scripts again so's i can do an rc-update and run them at startup. I read quite a bit about writing init scripts but it's just a bit over my head...I could certainly spend more time doing that but...if there is a command that would generate these scripts off my conf.d/net file or something like that I would love to know.
Thanks for any help
Andy |
|
Back to top |
|
|
ocbMaurice Tux's lil' helper
Joined: 14 Feb 2003 Posts: 90 Location: Switzerland
|
Posted: Fri Oct 29, 2004 4:38 pm Post subject: |
|
|
The net.eth? scripts are all the same. They actually read the config options from the conf.d/net file. So all you have to is to restore this script. |
|
Back to top |
|
|
Lajasha Veteran
Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Fri Oct 29, 2004 4:41 pm Post subject: |
|
|
if you have deleted the net.* scripts then just emerge baselayout to get them back. _________________ Come and play in my land |
|
Back to top |
|
|
mule169 n00b
Joined: 12 Oct 2004 Posts: 8
|
Posted: Fri Oct 29, 2004 5:34 pm Post subject: cool |
|
|
Ok... that sounds easy enough...
ocbMaurice: How would i go about restoring those scripts? sorry i'm a bit of a noob... It's good to know what that script actually does though thanks for explaining
Maletek: Same thing... i'm a bit new to all the inner working of linux and expecially gentoo... should i $> emerge system ? or is there a emerge option for just the networking stuff... again sorry, i'm just a bit unfamiliar.
Guess it's back to the tutorial books and such for some more reading...*whew* my tiny little brain is learning too much too quick
Thanks for your help guys,
Andy |
|
Back to top |
|
|
Lajasha Veteran
Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Fri Oct 29, 2004 5:35 pm Post subject: Re: cool |
|
|
mule169 wrote: | Ok... that sounds easy enough...
ocbMaurice: How would i go about restoring those scripts? sorry i'm a bit of a noob... It's good to know what that script actually does though thanks for explaining
Maletek: Same thing... i'm a bit new to all the inner working of linux and expecially gentoo... should i $> emerge system ? or is there a emerge option for just the networking stuff... again sorry, i'm just a bit unfamiliar.
Guess it's back to the tutorial books and such for some more reading...*whew* my tiny little brain is learning too much too quick
Thanks for your help guys,
Andy |
Do I hear a RTFM coming on??? Na, just kidding.
_________________ Come and play in my land |
|
Back to top |
|
|
mule169 n00b
Joined: 12 Oct 2004 Posts: 8
|
Posted: Fri Oct 29, 2004 5:43 pm Post subject: |
|
|
ha ha ha...I'm a retard.. sorry.
I really do appriciate all you guys who are more knowledgable than the rest of us, helping out and actually reading our problems that stem out of ignorance.... such as...
"I didn't know that "baselayout" was a option for the emerge command"
I do deserve a RTMF!!!! Thanks anyway all!
Andy |
|
Back to top |
|
|
mule169 n00b
Joined: 12 Oct 2004 Posts: 8
|
Posted: Fri Oct 29, 2004 5:44 pm Post subject: |
|
|
RTMF...rather if my fingers could type right... what happens if i do emerge bsaelayout??? |
|
Back to top |
|
|
mule169 n00b
Joined: 12 Oct 2004 Posts: 8
|
Posted: Fri Oct 29, 2004 5:45 pm Post subject: |
|
|
AAAARRGGHH RTFM!! I quit.. |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Fri Oct 29, 2004 7:16 pm Post subject: |
|
|
mule169 wrote: | RTMF...rather if my fingers could type right... what happens if i do emerge bsaelayout??? |
Baselayout is just the init scripts and base config. Worst you'll have to do is reset some things in rc.conf.
So say if you rm -rf /etc/init.d, all you've gotta do is just emerge baselayout, and it would restore all of the init scripts. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
Lajasha Veteran
Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Fri Oct 29, 2004 7:26 pm Post subject: |
|
|
mule169 wrote: | I do deserve a RTMF!!!! Thanks anyway all! |
mule169 wrote: | RTMF...rather if my fingers could type right... what happens if i do emerge bsaelayout??? |
mule169 wrote: | AAAARRGGHH RTFM!! I quit.. |
I guess 3rd times a chrm right..? _________________ Come and play in my land |
|
Back to top |
|
|
mule169 n00b
Joined: 12 Oct 2004 Posts: 8
|
Posted: Fri Oct 29, 2004 7:48 pm Post subject: |
|
|
"Baselayout is just the init scripts and base config. Worst you'll have to do is reset some things in rc.conf. "
good to know HydroSan thanks for taking the time to explain!! [/quote] |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Lajasha Veteran
Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Fri Oct 29, 2004 8:33 pm Post subject: |
|
|
UberLord wrote: | HydroSan wrote: | So say if you rm -rf /etc/init.d, all you've gotta do is just emerge baselayout, and it would restore all of the init scripts. |
Not quite - that would just restore the init scripts baselayout provides.
For example, /etc/init.d/hotplug is provided by .... well find out!
To find out which package owns which file you can do the following
Code: | equery belongs /etc/init.d/hotplug |
|
I learn something new everyday.. Thanks. _________________ Come and play in my land |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
|