Pakfire laedt die Listen jetzt besser und hat eine veraenderte Oberflaeche bekommen.
[people/pmueller/ipfire-2.x.git] / src / ppp / ip-up
CommitLineData
d1e90efc 1#!/bin/sh
cd1a2927 2#
cd1a2927 3
905fbf3e
MT
4. /etc/sysconfig/rc
5. $rc_functions
6
d1e90efc
MT
7PRIMARY_DNS=$DNS1
8SECONDARY_DNS=$DNS2
cd1a2927 9
d1e90efc 10eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings)
cd1a2927 11
d1e90efc
MT
12if [ "$DNS" == "Automatic" ]; then
13 if [ "$TYPE" == "isdn" ]; then
14 echo -n "$MS_DNS1" > /var/ipfire/red/dns1
15 echo -n "$MS_DNS2" > /var/ipfire/red/dns2
cd1a2927 16 else
d1e90efc
MT
17 echo -n "$PRIMARY_DNS" > /var/ipfire/red/dns1
18 echo -n "$SECONDARY_DNS" > /var/ipfire/red/dns2
19 fi
20else
21 echo -n "$DNS1" > /var/ipfire/red/dns1
22 echo -n "$DNS2" > /var/ipfire/red/dns2
23fi
cd1a2927 24
d1e90efc
MT
25echo -n "$1" > /var/ipfire/red/iface
26echo -n "$4" > /var/ipfire/red/local-ipaddress
27echo -n "$5" > /var/ipfire/red/remote-ipaddress
cd1a2927 28
d1e90efc 29touch /var/ipfire/red/active
cd1a2927 30
0e42072a
MT
31run_subdir ${rc_base}/init.d/networking/red.up/
32
d1e90efc 33[ -e "/var/ipfire/ppp/nobeeps" ] || /etc/rc.d/init.d/beep up