diff options
author | John Crispin <john@openwrt.org> | 2013-06-21 16:54:37 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-06-21 16:54:37 +0000 |
commit | 4ebf19b48fafc8d94e14e4ba779969613b241a6a (patch) | |
tree | 9918f890a8915023b49ea30948beb5d048c333fa /package/trelay/files | |
parent | 44b1688e6c7b4f16f7165fbd560e1183aef69090 (diff) | |
download | upstream-4ebf19b48fafc8d94e14e4ba779969613b241a6a.tar.gz upstream-4ebf19b48fafc8d94e14e4ba779969613b241a6a.tar.bz2 upstream-4ebf19b48fafc8d94e14e4ba779969613b241a6a.zip |
packages: clean up the package folder
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37007
Diffstat (limited to 'package/trelay/files')
-rw-r--r-- | package/trelay/files/trelay.config | 4 | ||||
-rw-r--r-- | package/trelay/files/trelay.hotplug | 5 | ||||
-rw-r--r-- | package/trelay/files/trelay.init | 32 |
3 files changed, 0 insertions, 41 deletions
diff --git a/package/trelay/files/trelay.config b/package/trelay/files/trelay.config deleted file mode 100644 index eb05013056..0000000000 --- a/package/trelay/files/trelay.config +++ /dev/null @@ -1,4 +0,0 @@ -config trelay - option enabled 0 - option dev1 eth0 - option dev2 wlan0 diff --git a/package/trelay/files/trelay.hotplug b/package/trelay/files/trelay.hotplug deleted file mode 100644 index 31f7378406..0000000000 --- a/package/trelay/files/trelay.hotplug +++ /dev/null @@ -1,5 +0,0 @@ -case "$ACTION" in - add|register) - [ -f /var/run/trelay.active ] && /etc/init.d/trelay start - ;; -esac diff --git a/package/trelay/files/trelay.init b/package/trelay/files/trelay.init deleted file mode 100644 index c812e12c69..0000000000 --- a/package/trelay/files/trelay.init +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh /etc/rc.common -START=80 - -check_relay() { - local cfg="$1" - - config_get_bool enabled "$cfg" enabled 1 - [ "$enabled" -gt 0 ] || return - - config_get dev1 "$cfg" dev1 - config_get dev2 "$cfg" dev2 - - [ -d "/sys/kernel/debug/trelay/${dev1}-${dev2}" ] && return - [ -d "/sys/class/net/${dev1}" -a -d "/sys/class/net/${dev2}" ] || return - - ifconfig "$dev1" up - ifconfig "$dev2" up - echo "${dev1}-${dev2},${dev1},${dev2}" > /sys/kernel/debug/trelay/add -} - -start() { - config_load trelay - config_foreach check_relay trelay - touch /var/run/trelay.active -} - -stop() { - rm -f /var/run/trelay.active - for relay in /sys/kernel/debug/trelay/*; do - [ -d "$relay" ] && echo > "$relay/remove" - done -} |