summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mode-tcpserver.lua2
-rw-r--r--mode-watch.lua2
-rw-r--r--openwrt/rhctl/Makefile2
-rw-r--r--silence-watch.lua2
-rw-r--r--utils.lua4
5 files changed, 9 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
--
+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 <http://www.gnu.org/licenses/>.
--
+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 <http://www.gnu.org/licenses/>.
--
+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