Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27294 - an init.d script for pppoe
Summary: an init.d script for pppoe
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Heinrich Wendel (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-25 07:21 UTC by Micheal Young
Modified: 2003-09-15 12:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Micheal Young 2003-08-25 07:21:03 UTC
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.
Comment 1 Fabien Fivaz 2003-09-06 04:47:58 UTC
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 ! 
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-09-15 12:08:58 UTC
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 :)