1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-14 06:29:07 +01:00

Openwrt changes

This commit is contained in:
Lukas Macura 2016-03-24 17:16:46 +01:00
parent e778db51c0
commit 94eb7dea06
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@ if ! [ "$(basename $0)" = "install.sh" ]; then
&& cd /tmp/zaf-installer \ && cd /tmp/zaf-installer \
&& curl -f -k -s -L -o - https://raw.githubusercontent.com/limosek/zaf/master/install.sh >install.sh \ && curl -f -k -s -L -o - https://raw.githubusercontent.com/limosek/zaf/master/install.sh >install.sh \
&& chmod +x install.sh \ && chmod +x install.sh \
&& exec ./install.sh && exec ./install.sh defconf
fi fi
ZAF_CFG_FILE=/etc/zaf.conf ZAF_CFG_FILE=/etc/zaf.conf
@ -82,6 +82,8 @@ zaf_detect_pkg() {
if which opkg >/dev/null; then if which opkg >/dev/null; then
ZAF_PKG="opkg" ZAF_PKG="opkg"
ZAF_AGENT_RESTART="/etc/init.d/zabbix_agentd restart" ZAF_AGENT_RESTART="/etc/init.d/zabbix_agentd restart"
ZAF_AGENT_CONFIGD="/var/run/zabbix_agentd.conf.d/"
ZAF_AGENT_CONFIG="/etc/zabbix_agentd.conf"
ZAF_CURL_INSECURE=1 ZAF_CURL_INSECURE=1
return return
fi fi

View File

@ -235,7 +235,7 @@ zaf_show_installed_plugins() {
zaf_list_plugins() { zaf_list_plugins() {
local cfile local cfile
local plugin local plugin
cd ${ZAF_PLUGINS_DIR}; ls --hide '.' -1 cd ${ZAF_PLUGINS_DIR}; ls -1
} }
zaf_show_plugin() { zaf_show_plugin() {