fix ssr pro /usr/bin/ip path

This commit is contained in:
coolsnowwolf 2017-09-09 15:16:33 +08:00
parent 024d5d919e
commit da7a33adc4
2 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,7 @@ LUCI_TITLE:=LuCI support for Shadowsocksr
LUCI_DEPENDS:=+iptables-mod-tproxy +kmod-ipt-tproxy +ip +ipset-lists +shadowsocksr-libev-alt +pdnsd-alt +coreutils +coreutils-base64 +coreutils-nohup +dnsmasq-full
LUCI_PKGARCH:=all
PKG_VERSION:=2.0
PKG_RELEASE:=15
PKG_RELEASE:=16
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -9,6 +9,9 @@ uci -q batch <<-EOF >/dev/null
commit firewall
EOF
[ ! -f /usr/bin/ip ] && ln -sf /sbin/ip /usr/bin/ip
(opkg list-installed | grep ip-full >/dev/null 2>&1) && ln -sf /usr/sbin/ip /usr/bin/ip
/etc/init.d/shadowsocksr stop
/etc/init.d/shadowsocksr disable