smstools3: Move init script to use procd

* properly install config file
* prevent smsd from starting right after installation to prevent loss of data
  (make default device unavailable by turning configuration into comments)
* move init script to procd
* update init script priority to sane value
* log to syslog - at the moment via stdout and procd
  this is a workaround to force smsd to stay in the foreground
* the init script can't do a modem reset anymore
  use an alarmhandler script instead
* add a local patch to make all processes terminate if the main process dies
* take over the package as new maintainer

Signed-off-by: Harald Geyer <harald@ccbib.org>
This commit is contained in:
Harald Geyer
2017-05-14 17:13:17 +00:00
parent 4b0ed514de
commit 0cc76f89ae
4 changed files with 48 additions and 133 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=smstools3
PKG_VERSION:=3.1.21
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=rald Kerma <dreagle@doukki.net>
PKG_MAINTAINER:=Harald Geyer <harald@ccbib.org>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=LICENSE
@@ -59,7 +59,7 @@ define Package/smstools3/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/smstools3.init $(1)/etc/init.d/smstools3
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) ./files/smstools3.conf $(1)/etc/smsd.conf
$(INSTALL_CONF) ./files/smstools3.conf $(1)/etc/smsd.conf
endef
$(eval $(call BuildPackage,smstools3))