Re: dial-on-demand mit DSL
Am Don, 2003-02-20 um 17.48 schrieb Frank Brodbeck:
> Hi,
>
> ich haette auch interesse an einem dial on demand, nur habe ich das
> Problem, dass bei mir ppp_on_boot ein toter symlink nach
> ppp_on_boot.dsl ist. Sollte mir jemand eine ppp_on_boot schicken,
> wäre ich sehr dankbar.
>
> Gruß,
> Frank.
Eine "/etc/ppp/ppp_on_boot.dsl"
---
#!/bin/sh
#
# The location of the ppp daemon itself (shouldn't need to be changed)
PPPD=/usr/sbin/pppd
#
# The Ethernet interface the DSL modem is connected to. If you change
this,
# you also need to edit the file /etc/ppp/peers/dsl-provider.
INTERFACE=eth0
#
# Bring the interface up
/sbin/ifconfig $INTERFACE up
#
$PPPD call dsl-provider
#
# Additional connections, which would just use settings from
# /etc/ppp/options.<tty>
#$PPPD ttyS0
#$PPPD ttyS1
#$PPPD ttyS2
#$PPPD ttyS3
----
Die Datei mußt Du dann für root und dip ausführbar machen :
chmod 750 /etc/ppp/ppp_on_boot.dsl
chown root.dip /etc/ppp/ppp_on_boot.dsl
Das Ergebnis sollte in etwa so aussehen :
> server1:~# ls -l /etc/ppp/ppp*
> lrwxrwxrwx 1 root root 15 Feb 8 20:57 /etc/ppp/ppp_on_boot -> ppp_on_boot.dsl
> -rwxr-x--- 1 root dip 469 Feb 5 20:42 /etc/ppp/ppp_on_boot.dsl
Willi
Reply to: