mirror of
https://github.com/openwrt/packages.git
synced 2026-04-17 11:52:29 +00:00
https-dns-proxy: add version information to binary
* add patches/020-cmakelists-add-version.patch (thanks @baranyaib90) to add version information to the binary and fix https://github.com/aarond10/https_dns_proxy/issues/149 * modify Makefile to add version information for the binary * rename patches/010-fix-cmakelists.patch for better readability * revert back to service restart in WAN/WAN6 trigger * update test.sh to test both init script and binary versions Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
@@ -262,7 +262,7 @@ service_triggers() {
|
||||
local wan wan6 i
|
||||
local wan6_trigger
|
||||
config_load "$packageName"
|
||||
config_get_bool wan6_trigger 'config' 'wan6_trigger' '0'
|
||||
config_get_bool wan6_trigger 'config' 'wan6_trigger' '0'
|
||||
. /lib/functions/network.sh
|
||||
network_flush_cache
|
||||
network_find_wan wan
|
||||
@@ -272,7 +272,7 @@ service_triggers() {
|
||||
wan6="${wan6:-wan6}"
|
||||
fi
|
||||
for i in "$wan" "$wan6"; do
|
||||
[ -n "$i" ] && procd_add_interface_trigger "interface.*" "$i" "/etc/init.d/${packageName}" start
|
||||
[ -n "$i" ] && procd_add_interface_trigger "interface.*" "$i" "/etc/init.d/${packageName}" restart
|
||||
done
|
||||
procd_add_config_trigger "config.change" "$packageName" "/etc/init.d/${packageName}" reload
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user