Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net.eth1 init script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mule169
n00b
n00b


Joined: 12 Oct 2004
Posts: 8

PostPosted: Fri Oct 29, 2004 4:08 pm    Post subject: net.eth1 init script Reply with quote

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
View user's profile Send private message
ocbMaurice
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2003
Posts: 90
Location: Switzerland

PostPosted: Fri Oct 29, 2004 4:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Fri Oct 29, 2004 4:41 pm    Post subject: Reply with quote

if you have deleted the net.* scripts then just emerge baselayout to get them back.
_________________
Come and play in my land
Back to top
View user's profile Send private message
mule169
n00b
n00b


Joined: 12 Oct 2004
Posts: 8

PostPosted: Fri Oct 29, 2004 5:34 pm    Post subject: cool Reply with quote

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
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Fri Oct 29, 2004 5:35 pm    Post subject: Re: cool Reply with quote

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.
Code:
emerge baselayout

_________________
Come and play in my land
Back to top
View user's profile Send private message
mule169
n00b
n00b


Joined: 12 Oct 2004
Posts: 8

PostPosted: Fri Oct 29, 2004 5:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
mule169
n00b
n00b


Joined: 12 Oct 2004
Posts: 8

PostPosted: Fri Oct 29, 2004 5:44 pm    Post subject: Reply with quote

RTMF...rather if my fingers could type right... what happens if i do emerge bsaelayout???
Back to top
View user's profile Send private message
mule169
n00b
n00b


Joined: 12 Oct 2004
Posts: 8

PostPosted: Fri Oct 29, 2004 5:45 pm    Post subject: Reply with quote

AAAARRGGHH RTFM!! I quit.. :-) :oops:
Back to top
View user's profile Send private message
HydroSan
l33t
l33t


Joined: 04 Mar 2004
Posts: 764
Location: The Kremlin (aka Canada)

PostPosted: Fri Oct 29, 2004 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Fri Oct 29, 2004 7:26 pm    Post subject: Reply with quote

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.. :-) :oops:

I guess 3rd times a chrm right..? :lol:
_________________
Come and play in my land
Back to top
View user's profile Send private message
mule169
n00b
n00b


Joined: 12 Oct 2004
Posts: 8

PostPosted: Fri Oct 29, 2004 7:48 pm    Post subject: Reply with quote

"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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Oct 29, 2004 8:23 pm    Post subject: Reply with quote

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

_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Lajasha
Veteran
Veteran


Joined: 17 Mar 2004
Posts: 1040
Location: Vibe Central

PostPosted: Fri Oct 29, 2004 8:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Oct 29, 2004 11:39 pm    Post subject: Reply with quote

maletek wrote:
I learn something new everyday.. Thanks.


If you don't learn something new in a day then the day has been wasted ...... although if it's an all day drink-a-thon then it's ok ;)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum