Browse Source

net/mwan3: remove absolute path for bin files

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 8 years ago
parent
commit
ef3261d0b4
5 changed files with 10 additions and 22 deletions
  1. +0
    -6
      net/mwan3/files/etc/hotplug.d/iface/15-mwan3
  2. +6
    -6
      net/mwan3/files/lib/mwan3/mwan3.sh
  3. +3
    -3
      net/mwan3/files/usr/libexec/rpcd/mwan3
  4. +0
    -6
      net/mwan3/files/usr/sbin/mwan3
  5. +1
    -1
      net/mwan3/files/usr/sbin/mwan3track

+ 0
- 6
net/mwan3/files/etc/hotplug.d/iface/15-mwan3 View File

@ -11,12 +11,6 @@ if [ "$ACTION" == "ifup" ]; then
[ -n "$DEVICE" ] || exit 3
fi
[ -x /usr/bin/ip ] || exit 4
[ -x /usr/sbin/ipset ] || exit 5
[ -x /usr/sbin/iptables ] || exit 6
[ -x /usr/sbin/ip6tables ] || exit 7
[ -x /usr/bin/logger ] || exit 8
mwan3_set_connected_iptables
config_load mwan3


+ 6
- 6
net/mwan3/files/lib/mwan3/mwan3.sh View File

@ -1,11 +1,11 @@
#!/bin/sh
IP4="/usr/bin/ip -4"
IP6="/usr/bin/ip -6"
IPS="/usr/sbin/ipset"
IPT4="/usr/sbin/iptables -t mangle -w"
IPT6="/usr/sbin/ip6tables -t mangle -w"
LOG="/usr/bin/logger -t mwan3 -p"
IP4="ip -4"
IP6="ip -6"
IPS="ipset"
IPT4="iptables -t mangle -w"
IPT6="ip6tables -t mangle -w"
LOG="logger -t mwan3 -p"
CONNTRACK_FILE="/proc/net/nf_conntrack"
mwan3_get_iface_id()


+ 3
- 3
net/mwan3/files/usr/libexec/rpcd/mwan3 View File

@ -6,9 +6,9 @@
MWAN3_STATUS_DIR="/var/run/mwan3track"
MWAN3_PID_FILE="/var/run/mwan3track"
IPS="/usr/sbin/ipset"
IPT4="/usr/sbin/iptables -t mangle -w"
IPT6="/usr/sbin/ip6tables -t mangle -w"
IPS="ipset"
IPT4="iptables -t mangle -w"
IPT6="ip6tables -t mangle -w"
report_connected_v4() {
local address


+ 0
- 6
net/mwan3/files/usr/sbin/mwan3 View File

@ -1,11 +1,5 @@
#!/bin/sh
[ -x /usr/bin/ip ] || exit 4
[ -x /usr/sbin/ipset ] || exit 5
[ -x /usr/sbin/iptables ] || exit 6
[ -x /usr/sbin/ip6tables ] || exit 7
[ -x /usr/bin/logger ] || exit 8
. /lib/functions.sh
. /lib/functions/network.sh
. /lib/mwan3/mwan3.sh


+ 1
- 1
net/mwan3/files/usr/sbin/mwan3track View File

@ -2,7 +2,7 @@
. /lib/functions.sh
LOG="/usr/bin/logger -t $(basename "$0")[$$] -p"
LOG="logger -t $(basename "$0")[$$] -p"
INTERFACE=""
DEVICE=""


Loading…
Cancel
Save