rc.conf

This forum is for all other ARMv5 devices

Re: rc.conf

Postby pepedog » Sat Jul 09, 2011 10:42 pm

You are supposed to starting with one of the net- scripts in /etc/rc.d, most likely net-profiles, network is for single interface
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: rc.conf

Postby Cybertimber2009 » Sun Jul 10, 2011 4:02 am

$this->bbcode_second_pass_quote('pepedog', 'Y')ou are supposed to starting with one of the net- scripts in /etc/rc.d, most likely net-profiles, network is for single interface

Yep, found it. I'm using netcfg as the rc.conf suggested.

Since I'm getting confused by what you are saying (a bit...) let me re-clear things up?
In /etc/rc.conf I have the following

#Static IP example
#eth0="eth0 192.168.2.12 netmask 255.255.255.0 broadcast 192.168.2.255"
#eth0="dhcp"
#INTERFACES=(eth0)

and a few lines down...

# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
NETWORKS=(eth0)

That to me means I should be using just netcfg, and only the editing of /etc/network.d/eth0 should have any effect. I'm using the netcfg package as the default ('network' package? whatever is right in the ec.conf file anyway) did not appear to support static IPv6 addresses. If you have a better suggestion, i'm open to it. I think something simple is awry in /etc/network.d/eth0.
Cybertimber2009
 
Posts: 40
Joined: Wed Jun 08, 2011 9:17 pm

Re: rc.conf

Postby pepedog » Sun Jul 10, 2011 9:22 am

So you are using just one interface, but I would stick to what you got.
This is what I would do-
copy the eth0 file to eth0worker
Edit to something you know will 100% work
Edit rc.conf and change where it says eth0 to eth0worker, and change DAEMONS so net-profiles is the only network starter
Reboot, you know eth0worker is good to start
Have usb keyboard incase you want to Ctrl-Alt-Del
Edit eth0worker to your delight
Try it by selecting with netcfg-menu
Once working, change rc.conf so eth0worker becomes eth0

Possibly? all the settings you put into your eth0 file (if good) could go into rc.conf and start the single interface way. I don't know for sure. At least this way you can try things, and not use another system for edit and e2fschk
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: rc.conf

Postby pepedog » Sun Jul 10, 2011 8:24 pm

My son came around with his dockstar (two interfaces), and even though "I know what I'm doing" it took me 2 hours to sort out.
Then we find a shorewall update overwrote one of it's config files
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: rc.conf

Postby Cybertimber2009 » Tue Jul 12, 2011 2:32 am

Yea I got tired of messing with netcfg. I tried this evening and got really fustrated when I tried a an example (cp ethernet-static eth0, then apply with netcfg-menu) even that failed ("failed to configure device"). Then I realized I could probably do it with a simple script.
I just created a script in the rc.d directory that does the one thing I needed...
$this->bbcode_second_pass_code('', 'ip -6 addr add <IvPv6 address> dev eth0')
Added that in rc.conf, rebooted and volia, everything works when I reboot my pogoplug, but with a lot less fuss.
Cybertimber2009
 
Posts: 40
Joined: Wed Jun 08, 2011 9:17 pm

Previous

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 16 guests