diff options
Diffstat (limited to 'package/network/utils/iproute2/files')
-rw-r--r-- | package/network/utils/iproute2/files/.svn/entries | 62 | ||||
-rw-r--r-- | package/network/utils/iproute2/files/.svn/text-base/15-teql.svn-base | 23 | ||||
-rw-r--r-- | package/network/utils/iproute2/files/15-teql | 23 |
3 files changed, 108 insertions, 0 deletions
diff --git a/package/network/utils/iproute2/files/.svn/entries b/package/network/utils/iproute2/files/.svn/entries new file mode 100644 index 0000000..da89afb --- /dev/null +++ b/package/network/utils/iproute2/files/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/package/network/utils/iproute2/files +svn://svn.openwrt.org/openwrt + + + +2012-12-02T13:04:03.330574Z +34442 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +15-teql +file + + + + +2013-03-17T12:13:17.000000Z +7fe397054763bd3778adb4cd9e35d311 +2012-12-02T13:04:03.330574Z +34442 +juhosg + + + + + + + + + + + + + + + + + + + + + +486 + diff --git a/package/network/utils/iproute2/files/.svn/text-base/15-teql.svn-base b/package/network/utils/iproute2/files/.svn/text-base/15-teql.svn-base new file mode 100644 index 0000000..a0c0e50 --- /dev/null +++ b/package/network/utils/iproute2/files/.svn/text-base/15-teql.svn-base @@ -0,0 +1,23 @@ +#!/bin/sh + +. /lib/functions.sh + +if [ "$ACTION" != "ifup" ]; then + exit +fi + +config_load network + +config_get teql $INTERFACE teql + +if [ "$teql" != "" ]; then + logger Adding device $DEVICE to TEQL master $teql + insmod sch_teql + tc qdisc add dev $DEVICE root $teql + + # The kernel doesn't let us bring it up until it has at least one + # slave. So bring it up now, if it isn't already. + if ! cat /sys/class/net/$teql/carrier &>/dev/null; then + ifup $teql & + fi +fi diff --git a/package/network/utils/iproute2/files/15-teql b/package/network/utils/iproute2/files/15-teql new file mode 100644 index 0000000..a0c0e50 --- /dev/null +++ b/package/network/utils/iproute2/files/15-teql @@ -0,0 +1,23 @@ +#!/bin/sh + +. /lib/functions.sh + +if [ "$ACTION" != "ifup" ]; then + exit +fi + +config_load network + +config_get teql $INTERFACE teql + +if [ "$teql" != "" ]; then + logger Adding device $DEVICE to TEQL master $teql + insmod sch_teql + tc qdisc add dev $DEVICE root $teql + + # The kernel doesn't let us bring it up until it has at least one + # slave. So bring it up now, if it isn't already. + if ! cat /sys/class/net/$teql/carrier &>/dev/null; then + ifup $teql & + fi +fi |