diff options
Diffstat (limited to 'package/network/services/ppp/files/lib/netifd')
7 files changed, 174 insertions, 0 deletions
diff --git a/package/network/services/ppp/files/lib/netifd/.svn/entries b/package/network/services/ppp/files/lib/netifd/.svn/entries new file mode 100644 index 0000000..3f5a95c --- /dev/null +++ b/package/network/services/ppp/files/lib/netifd/.svn/entries @@ -0,0 +1,96 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/package/network/services/ppp/files/lib/netifd +svn://svn.openwrt.org/openwrt + + + +2013-01-17T08:28:57.760235Z +35188 +cyrus + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +ppp-up +file + + + + +2013-03-17T12:13:19.000000Z +fb0ee129fa8de081e4bee21364f08f36 +2013-01-17T08:28:57.760235Z +35188 +cyrus +has-props + + + + + + + + + + + + + + + + + + + + +585 + +ppp-down +file + + + + +2013-03-17T12:13:19.000000Z +e8c0b6db2f664f55fd6da559d238bc98 +2012-05-26T15:31:54.789852Z +31860 +nbd +has-props + + + + + + + + + + + + + + + + + + + + +238 + diff --git a/package/network/services/ppp/files/lib/netifd/.svn/prop-base/ppp-down.svn-base b/package/network/services/ppp/files/lib/netifd/.svn/prop-base/ppp-down.svn-base new file mode 100644 index 0000000..869ac71 --- /dev/null +++ b/package/network/services/ppp/files/lib/netifd/.svn/prop-base/ppp-down.svn-base @@ -0,0 +1,5 @@ +K 14 +svn:executable +V 1 +* +END diff --git a/package/network/services/ppp/files/lib/netifd/.svn/prop-base/ppp-up.svn-base b/package/network/services/ppp/files/lib/netifd/.svn/prop-base/ppp-up.svn-base new file mode 100644 index 0000000..869ac71 --- /dev/null +++ b/package/network/services/ppp/files/lib/netifd/.svn/prop-base/ppp-up.svn-base @@ -0,0 +1,5 @@ +K 14 +svn:executable +V 1 +* +END diff --git a/package/network/services/ppp/files/lib/netifd/.svn/text-base/ppp-down.svn-base b/package/network/services/ppp/files/lib/netifd/.svn/text-base/ppp-down.svn-base new file mode 100644 index 0000000..94cefc4 --- /dev/null +++ b/package/network/services/ppp/files/lib/netifd/.svn/text-base/ppp-down.svn-base @@ -0,0 +1,13 @@ +#!/bin/sh +PPP_IPPARAM="$6" + +. /lib/netifd/netifd-proto.sh +proto_init_update "$IFNAME" 0 +proto_send_update "$PPP_IPPARAM" + +[ -d /etc/ppp/ip-down.d ] && { + for SCRIPT in /etc/ppp/ip-down.d/* + do + [ -x "$SCRIPT" ] && "$SCRIPT" "$@" + done +} diff --git a/package/network/services/ppp/files/lib/netifd/.svn/text-base/ppp-up.svn-base b/package/network/services/ppp/files/lib/netifd/.svn/text-base/ppp-up.svn-base new file mode 100644 index 0000000..d488b8d --- /dev/null +++ b/package/network/services/ppp/files/lib/netifd/.svn/text-base/ppp-up.svn-base @@ -0,0 +1,21 @@ +#!/bin/sh +PPP_IPPARAM="$6" + +. /lib/netifd/netifd-proto.sh +proto_init_update "$IFNAME" 1 1 +proto_set_keep 1 +[ -n "$PPP_IPPARAM" ] && { + [ -n "$IPLOCAL" ] && proto_add_ipv4_address "$IPLOCAL" 32 + [ -n "$IPREMOTE" ] && proto_add_ipv4_route 0.0.0.0 0 "$IPREMOTE" + [ -n "$LLLOCAL" ] && proto_add_ipv6_address "$LLLOCAL" 128 + [ -n "$DNS1" ] && proto_add_dns_server "$DNS1" + [ -n "$DNS2" -a "$DNS1" != "$DNS2" ] && proto_add_dns_server "$DNS2" +} +proto_send_update "$PPP_IPPARAM" + +[ -d /etc/ppp/ip-up.d ] && { + for SCRIPT in /etc/ppp/ip-up.d/* + do + [ -x "$SCRIPT" ] && "$SCRIPT" "$@" + done +} diff --git a/package/network/services/ppp/files/lib/netifd/ppp-down b/package/network/services/ppp/files/lib/netifd/ppp-down new file mode 100755 index 0000000..94cefc4 --- /dev/null +++ b/package/network/services/ppp/files/lib/netifd/ppp-down @@ -0,0 +1,13 @@ +#!/bin/sh +PPP_IPPARAM="$6" + +. /lib/netifd/netifd-proto.sh +proto_init_update "$IFNAME" 0 +proto_send_update "$PPP_IPPARAM" + +[ -d /etc/ppp/ip-down.d ] && { + for SCRIPT in /etc/ppp/ip-down.d/* + do + [ -x "$SCRIPT" ] && "$SCRIPT" "$@" + done +} diff --git a/package/network/services/ppp/files/lib/netifd/ppp-up b/package/network/services/ppp/files/lib/netifd/ppp-up new file mode 100755 index 0000000..d488b8d --- /dev/null +++ b/package/network/services/ppp/files/lib/netifd/ppp-up @@ -0,0 +1,21 @@ +#!/bin/sh +PPP_IPPARAM="$6" + +. /lib/netifd/netifd-proto.sh +proto_init_update "$IFNAME" 1 1 +proto_set_keep 1 +[ -n "$PPP_IPPARAM" ] && { + [ -n "$IPLOCAL" ] && proto_add_ipv4_address "$IPLOCAL" 32 + [ -n "$IPREMOTE" ] && proto_add_ipv4_route 0.0.0.0 0 "$IPREMOTE" + [ -n "$LLLOCAL" ] && proto_add_ipv6_address "$LLLOCAL" 128 + [ -n "$DNS1" ] && proto_add_dns_server "$DNS1" + [ -n "$DNS2" -a "$DNS1" != "$DNS2" ] && proto_add_dns_server "$DNS2" +} +proto_send_update "$PPP_IPPARAM" + +[ -d /etc/ppp/ip-up.d ] && { + for SCRIPT in /etc/ppp/ip-up.d/* + do + [ -x "$SCRIPT" ] && "$SCRIPT" "$@" + done +} |