]>
Commit | Line | Data |
---|---|---|
d1e90efc | 1 | #!/bin/sh |
cd1a2927 | 2 | # |
cd1a2927 | 3 | |
d1e90efc MT |
4 | PRIMARY_DNS=$DNS1 |
5 | SECONDARY_DNS=$DNS2 | |
cd1a2927 | 6 | |
d1e90efc | 7 | eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings) |
cd1a2927 | 8 | |
d1e90efc MT |
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 | |
cd1a2927 | 13 | else |
d1e90efc MT |
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 | |
cd1a2927 | 21 | |
d1e90efc MT |
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 | |
cd1a2927 | 25 | |
d1e90efc | 26 | touch /var/ipfire/red/active |
cd1a2927 | 27 | |
0e42072a MT |
28 | run_subdir ${rc_base}/init.d/networking/red.up/ |
29 | ||
d1e90efc | 30 | [ -e "/var/ipfire/ppp/nobeeps" ] || /etc/rc.d/init.d/beep up |