PKG_NAME:=miredo
PKG_VERSION:=1.2.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_URL:=http://www.remlab.net/files/miredo/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
START=50
-PID_F=/var/run/miredo-server.pid
+SERVICE_USE_PID=1
start() {
- miredo-server
+ service_start /usr/sbin/miredo-server
}
stop() {
- [ -f $PID_F ] && kill $(cat $PID_F)
+ service_stop /usr/sbin/miredo-server
}
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
+
START=50
-PID_F=/var/run/miredo.pid
+# XXX: miredo create a pid file but using it doesn't seem to work
+#SERVICE_USE_PID=1
start() {
- miredo
+ service_start /usr/sbin/miredo
}
stop() {
- [ -f $PID_F ] && kill $(cat $PID_F)
+ service_stop /usr/sbin/miredo
}