* properly escape double quotes in travelmate option values
* minor procd tweaks
Signed-off-by: Dirk Brenken <dev@brenken.org>
PKG_NAME:=travelmate
PKG_VERSION:=2.1.3
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
procd_set_param command "${trm_script}" "${@}"
procd_set_param pidfile "${trm_pidfile}"
procd_set_param nice "$(uci_get travelmate global trm_nice "0")"
- procd_set_param stdout 1
- procd_set_param stderr 1
+ procd_set_param stdout 0
+ procd_set_param stderr 0
procd_close_instance
fi
}
if [ "${name}" = "travelmate" ] && [ "${type}" = "global" ]; then
option_cb() {
- local option="${1}" value="${2}"
+ local option="${1}" value="${2//\"/\\\"}"
eval "${option}=\"${value}\""
}
list_cb() {
- local option="${1}" value="${2}"
+ local option="${1}" value="${2//\"/\\\"}"
if [ "${option}" = "trm_vpnifacelist" ] && ! printf "%s" "${trm_vpnifacelist}" | "${trm_grepcmd}" -q "${value}"; then
eval "trm_vpnifacelist=\"$(printf "%s" "${trm_vpnifacelist}") ${value}\""
fi