summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2013-09-19 18:10:13 (GMT)
committerChristian Pointner <equinox@helsinki.at>2013-09-19 18:10:13 (GMT)
commitbb2467ca0c1db2dc9476c3be0f428463aeac0bb0 (patch)
treecd68dd44a90cf0c21cfe066f08f34787e1263cb0
parent52f7d4766af2136199d78885cfbd4a6defcebdcb (diff)
fixed lua path
-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