Since there seems to be no init script for pppoe .. and i like it to come up when i start the system .. so a wrote a VERY simple init script to handle it and posted it on the forum. It seems to go over well . . . so i though i would see if i could get it included into the system! Here it is, i call it simply adsl #!/sbin/runscript # This init script controls the pppoe connection for adsl lines. # Distributed under the terms of the GNU General Public License v2 depend() { need net.eth0 } start() { ebegin "Starting adsl" start-stop-daemon --start --quiet --exec /usr/sbin/adsl-start --background eend $? } stop() { ebegin "Stopping adsl" start-stop-daemon --start --quiet --exec /usr/sbin/adsl-stop --background eend $? } #end That is it! I hope that this can be included as a patch too pppoe for gentoo. Reproducible: Always Steps to Reproduce: 1. 2. 3.
It works on my box (with rp-pppoe) but I would replace net.eth0 with net in the dependency line, since, for example, I'm using eth1 to connect !
sorry for taking so long, i tried to integrate this in the net.ppp0 script, but i didn't find a good way, so it's in the rp-pppoe ebuild now :)