Summary: | redo net.ppp0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jacob Perkins <jap1> |
Component: | Current packages | Assignee: | Martin Schlemmer (RETIRED) <azarah> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kevin, vapier |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jacob Perkins
2002-08-12 15:05:04 UTC
heh, the /etc/init.d/net.ppp0 was so phearsome with options i `echo>net.ppp0` and just made it run adsl-start/adsl-stop shouldnt take that long to rewrite it ... just move the variables into /etc/conf.d/net ... when the net.ppp0 script is run it automatically sources that file before running anything But what if you're using net.eth0 and net.ppp0 interchangeably. Maybe you can only connect to the net through dialup, but have a router for a home network. I think being able to use both eth0 and ppp0 at the same time might need some redesigning of the net.eth0 too. I think each network script should have separate config files in conf.d instead of just sourcing from net why ? the variable names dont clash I'd go for a /etc/conf.d/net.ppp0, etc as well. Reason is if you have more than one ppp connection (yes, some of us without adsl do :P), you want each one to be different. You will also (like I did when /etc/conf.d was first proposed) make it root only readible on install. BTW: what country Jacob ? I am from South Africa, and wrote it to work for me. Did a few posts to ask for people to test and make it more universal, but nobody got back to me. Glad it works for you !! :) what an odd thing, having more than 1 ppp connection i never thought of that :) so why not follow suit with /etc/conf.d/net where the variables are all VAR_ethX and put the ppp variables in there, like PEER_ppp0 ... just put them at the end after a big comment block like 'IF YOU DO NOT USE PPP STOP EDITING' I'm in the USA, St. Louis, MO, and I have net.ppp0 and net.ppp1 right now, and could even make a net.ppp2. Luckily, I just got my replacement dsl modem and have no need for dialup anymore, but that doesn't change the fact that I think there should be multiple files in conf.d, one for each net connection, and that I might need to use one of those ppp connections in the future, at the same time as I'm using my net.eth0 connection. I think that having multiple files is much more straightforward than having multiple variables in one file. So, conf.d should have both net.eth0 and net.ppp0, along with any net.ethX and net.pppX. Giving the conf.d/net.pppX files 700 perms protects the passwords, and ought to fix the need to do a chmod +r on resolv.conf after connecting. SpanKY: because there are so *many* variables for only *one* net.ppp script. Things will really get out of hand if you have to put say only two net.ppp config variables in /etc/conf.d/net Fixed on CVS. |