Korrektur MPFire CGI
[people/teissler/ipfire-2.x.git] / src / ppp / ip-up
CommitLineData
d1e90efc 1#!/bin/sh
cd1a2927 2#
cd1a2927 3
d1e90efc
MT
4PRIMARY_DNS=$DNS1
5SECONDARY_DNS=$DNS2
cd1a2927 6
d1e90efc 7eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings)
cd1a2927 8
d1e90efc
MT
9if [ "$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
17else
18 echo -n "$DNS1" > /var/ipfire/red/dns1
19 echo -n "$DNS2" > /var/ipfire/red/dns2
20fi
cd1a2927 21
d1e90efc
MT
22echo -n "$1" > /var/ipfire/red/iface
23echo -n "$4" > /var/ipfire/red/local-ipaddress
24echo -n "$5" > /var/ipfire/red/remote-ipaddress
cd1a2927 25
d1e90efc 26touch /var/ipfire/red/active
cd1a2927 27
0e42072a
MT
28run_subdir ${rc_base}/init.d/networking/red.up/
29
d1e90efc 30[ -e "/var/ipfire/ppp/nobeeps" ] || /etc/rc.d/init.d/beep up