]> git.ipfire.org Git - ipfire-2.x.git/blob - src/ppp/ip-up
Wieder einmal die Netzwerkscripts.
[ipfire-2.x.git] / src / ppp / ip-up
1 #!/bin/sh
2 #
3
4 PRIMARY_DNS=$DNS1
5 SECONDARY_DNS=$DNS2
6
7 eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings)
8
9 if [ "$DNS" == "Automatic" ]; then
10 if [ "$TYPE" == "isdn" ]; then
11 echo -n "$MS_DNS1" > /var/ipfire/red/dns1
12 echo -n "$MS_DNS2" > /var/ipfire/red/dns2
13 else
14 echo -n "$PRIMARY_DNS" > /var/ipfire/red/dns1
15 echo -n "$SECONDARY_DNS" > /var/ipfire/red/dns2
16 fi
17 else
18 echo -n "$DNS1" > /var/ipfire/red/dns1
19 echo -n "$DNS2" > /var/ipfire/red/dns2
20 fi
21
22 echo -n "$1" > /var/ipfire/red/iface
23 echo -n "$4" > /var/ipfire/red/local-ipaddress
24 echo -n "$5" > /var/ipfire/red/remote-ipaddress
25
26 touch /var/ipfire/red/active
27
28 run_subdir ${rc_base}/init.d/networking/red.up/
29
30 [ -e "/var/ipfire/ppp/nobeeps" ] || /etc/rc.d/init.d/beep up