]>
Commit | Line | Data |
---|---|---|
d1e90efc | 1 | #!/bin/sh |
cd1a2927 | 2 | # |
cd1a2927 | 3 | |
905fbf3e MT |
4 | . /etc/sysconfig/rc |
5 | . $rc_functions | |
6 | ||
d1e90efc MT |
7 | PRIMARY_DNS=$DNS1 |
8 | SECONDARY_DNS=$DNS2 | |
cd1a2927 | 9 | |
d1e90efc | 10 | eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings) |
cd1a2927 | 11 | |
d1e90efc MT |
12 | if [ "$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 | |
20 | else | |
21 | echo -n "$DNS1" > /var/ipfire/red/dns1 | |
22 | echo -n "$DNS2" > /var/ipfire/red/dns2 | |
23 | fi | |
cd1a2927 | 24 | |
d1e90efc MT |
25 | echo -n "$1" > /var/ipfire/red/iface |
26 | echo -n "$4" > /var/ipfire/red/local-ipaddress | |
27 | echo -n "$5" > /var/ipfire/red/remote-ipaddress | |
cd1a2927 | 28 | |
d1e90efc | 29 | touch /var/ipfire/red/active |
cd1a2927 | 30 | |
0e42072a MT |
31 | run_subdir ${rc_base}/init.d/networking/red.up/ |
32 | ||
d1e90efc | 33 | [ -e "/var/ipfire/ppp/nobeeps" ] || /etc/rc.d/init.d/beep up |