mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
vpnbypass: bugfix: remove non-ASCII from system log; update README
Signed-off-by: Stan Grishin <stangri@melmac.net>
This commit is contained in:
+2
-15
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=vpnbypass
|
||||
PKG_VERSION:=1.3.1
|
||||
PKG_RELEASE:=4
|
||||
PKG_RELEASE:=7
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
|
||||
|
||||
@@ -14,9 +14,8 @@ include $(INCLUDE_DIR)/package.mk
|
||||
define Package/vpnbypass
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+ipset +iptables
|
||||
CONFLICTS:=vpn-policy-routing
|
||||
TITLE:=VPN Bypass Service
|
||||
DEPENDS:=+ipset +iptables
|
||||
PKGARCH:=all
|
||||
endef
|
||||
|
||||
@@ -59,16 +58,6 @@ define Package/vpnbypass/postinst
|
||||
# check if we are on real system
|
||||
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||
/etc/init.d/vpnbypass enable
|
||||
|
||||
while uci -q del ucitrack.@vpnbypass[-1]; do :; done
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
add ucitrack vpnbypass
|
||||
set ucitrack.@vpnbypass[0].init='vpnbypass'
|
||||
del_list ucitrack.@firewall[0].affects='vpnbypass'
|
||||
add_list ucitrack.@firewall[0].affects='vpnbypass'
|
||||
commit ucitrack
|
||||
EOF
|
||||
fi
|
||||
exit 0
|
||||
endef
|
||||
@@ -77,8 +66,6 @@ define Package/vpnbypass/prerm
|
||||
#!/bin/sh
|
||||
# check if we are on real system
|
||||
if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||
while uci -q delete ucitrack.@vpnbypass[-1]; do :; done
|
||||
uci -q del_list ucitrack.@firewall[0].affects='vpnbypass'
|
||||
echo "Stopping service and removing rc.d symlink for vpnbypass"
|
||||
/etc/init.d/vpnbypass stop || true
|
||||
/etc/init.d/vpnbypass disable || true
|
||||
|
||||
Reference in New Issue
Block a user