From e712f38bb1be257d78106da5291600572c171512 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 4 Jul 2011 22:41:24 +0000 Subject: [PATCH] fix plugin error git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@233 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 2 +- var/mongoose/lib/plugin | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 var/mongoose/lib/plugin diff --git a/CONTROL/control b/CONTROL/control index 8149d04..e2a2754 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.5.9 +Version: 0.5.9-1 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: mongoose(>=2.11-6),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.3),jim-oo,jim-pack,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.2),hmt(>=1.0.6),ssmtp diff --git a/var/mongoose/lib/plugin b/var/mongoose/lib/plugin new file mode 100644 index 0000000..363ca71 --- /dev/null +++ b/var/mongoose/lib/plugin @@ -0,0 +1,9 @@ + +proc eval_plugins {hook} { + foreach plugin [glob /mod/var/mongoose/plugin/*] { + if {[file isfile "$plugin/$hook.hook"]} { + uplevel source "$plugin/$hook.hook" + } + } +} +