From bb2467ca0c1db2dc9476c3be0f428463aeac0bb0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 19 Sep 2013 18:10:13 +0000 Subject: fixed lua path diff --git a/mode-tcpserver.lua b/mode-tcpserver.lua index 640ee30..aafcae9 100644 --- a/mode-tcpserver.lua +++ b/mode-tcpserver.lua @@ -19,6 +19,8 @@ -- along with rhctl. If not, see . -- +package.path = package.path .. ';/usr/share/rhctl/?.lua' + socket = require("socket") current_mode = nil diff --git a/mode-watch.lua b/mode-watch.lua index b603661..4f2bb89 100644 --- a/mode-watch.lua +++ b/mode-watch.lua @@ -19,6 +19,8 @@ -- along with rhctl. If not, see . -- +package.path = package.path .. ';/usr/share/rhctl/?.lua' + socket = require("socket") utils = require("utils") diff --git a/openwrt/rhctl/Makefile b/openwrt/rhctl/Makefile index a53aa39..ee4ae97 100644 --- a/openwrt/rhctl/Makefile +++ b/openwrt/rhctl/Makefile @@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rhctl -PKG_REV:=107 +PKG_REV:=108 PKG_VERSION:=r$(PKG_REV) PKG_RELEASE:=1 diff --git a/silence-watch.lua b/silence-watch.lua index 91d999e..18b8a4b 100644 --- a/silence-watch.lua +++ b/silence-watch.lua @@ -19,6 +19,8 @@ -- along with rhctl. If not, see . -- +package.path = package.path .. ';/usr/share/rhctl/?.lua' + socket = require("socket") utils = require("utils") diff --git a/utils.lua b/utils.lua index 950ca58..1974d41 100644 --- a/utils.lua +++ b/utils.lua @@ -22,7 +22,7 @@ local utils = {} function utils.send_mail(address, subject, bodytext) - local fp = assert(io.popen("/usr/sbin/msmtp " .. address, "w")) + local fp = assert(io.popen("/usr/bin/msmtp " .. address, "w")) fp:write("Subject: " .. subject .. "\n") fp:write("To: " .. address .. "\n") @@ -32,4 +32,4 @@ function utils.send_mail(address, subject, bodytext) fp:close() end -return utils \ No newline at end of file +return utils -- cgit v0.10.2