Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ADSL beim Start automatisch verbinden
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
hambuergaer
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 294
Location: Hamburg

PostPosted: Mon Oct 10, 2005 11:46 pm    Post subject: ADSL beim Start automatisch verbinden Reply with quote

Hi Leute,

auf meinem Gentoo-Server läuft die ADSL-Verbindung hervorragend (benutze rp-pppoe). Wie bekomme ich es hin, dass die ADSL-Verbindung bei jedem Start automatisch hergestellt wird? Mit rc-update add rp-pppoe geht es nicht, da es das init-script nicht gibt.

Kann mir da jemand helfen?

Gruß, hambuergaer.
_________________
---------------------------------------------------------
wat is hier los?
Back to top
View user's profile Send private message
misterjack
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1655

PostPosted: Tue Oct 11, 2005 1:18 am    Post subject: Reply with quote

da fehlt irgendwas, denn ich bin in besitz des init-scriptes. aber keine ahnung welches paket, habe ich vor nem jahr installiert :)
_________________
„Meine Meinung steht fest! Bitte verwirren Sie mich nicht mit Tatsachen.“
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Tue Oct 11, 2005 6:54 am    Post subject: Reply with quote

Ich starte es auch per init-script.
Kannste auch per Hand anlegen.
Das sieht dann so aus (/etc/init.d/rp-pppoe)
Code:

#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/rp-pppoe/files/rp-pppoe.rc,v 1.7 2004/10$

depend() {
        use net
        after domainname
}

start() {
        ebegin "Starting adsl"
        start-stop-daemon --start --quiet --background --exec /usr/sbin/adsl-start
        eend $?
}

stop() {
        ebegin "Stopping adsl"
        start-stop-daemon --start --quiet --exec /usr/sbin/adsl-stop
        eend $?
}


Interessant ist das --background, dann wird schon das nächste rc-script ausgeführt während adsl verbindet.
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
hambuergaer
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 294
Location: Hamburg

PostPosted: Tue Oct 11, 2005 8:24 am    Post subject: Reply with quote

Das Problem ist, dass das Script bei mir nicht auftaucht! Auch ein erneutes emerge rp-pppoe hat nichts gebracht. Ich habe die Version 3.5-r11.
_________________
---------------------------------------------------------
wat is hier los?
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1917

PostPosted: Tue Oct 11, 2005 8:44 am    Post subject: Reply with quote

Ja, war bei mir genauso. Eines Tages (ich glaube nach irgendeinem Baselayout-update) war das script nicht mehr da. Da ich es aber so gewöhnt war, habe ich es mir einfach aus einer alten Installation rüberkopiert und es geht. Einfach in /etc/init.d/ eine Datei namens rp-pppoe erzeugen und den obigen Inhalt reinlopieren, rc-update add rp-pppoe default und gut is!
hth
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
LunX
Guru
Guru


Joined: 18 May 2004
Posts: 391
Location: Rastede

PostPosted: Tue Oct 11, 2005 11:32 am    Post subject: Reply with quote

Ich habe in /etc/conf.d/net
ifconfig_eth1=( "adsl" ) eingetragen
und lasse dann beim starten einfach eth1 starten läuft bei mir wunderbar.
Gruß
Lunx
Back to top
View user's profile Send private message
hambuergaer
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 294
Location: Hamburg

PostPosted: Thu Oct 13, 2005 8:32 am    Post subject: Reply with quote

danke für eure antworten! bei mir läuft das obige script, allerdings mit der option adsl-connect anstatt adsl-start.

gruß, hambuergaer.
_________________
---------------------------------------------------------
wat is hier los?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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