update 05-10 16:48:58
This commit is contained in:
parent
9d86b73ea5
commit
81c49763ec
|
@ -11,7 +11,6 @@ PKG_NAME:=mentohust
|
|||
PKG_VERSION:=0.3.1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
@ -29,7 +28,7 @@ endef
|
|||
|
||||
define Package/mentohust/description
|
||||
A Ruijie Client Daemon,
|
||||
Most usually used in China collages.
|
||||
Most usually used in Chinese universities.
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
|
@ -38,7 +37,6 @@ define Build/Prepare
|
|||
$(SED) 's/dhclient/udhcpc -i/g' $(PKG_BUILD_DIR)/myconfig.c
|
||||
endef
|
||||
|
||||
|
||||
define Package/mentohust/conffiles
|
||||
/etc/mentohust.conf
|
||||
endef
|
||||
|
@ -56,8 +54,9 @@ define Package/mentohust/install
|
|||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mentohust $(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_CONF) $(PKG_BUILD_DIR)/mentohust.conf $(1)/etc/mentohust.conf
|
||||
|
||||
$(INSTALL_CONF) ./files/mentohust.conf $(1)/etc/mentohust.conf
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/mentohust.init $(1)/etc/init.d/mentohust
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
STOP=01
|
||||
|
||||
USE_PROCD=1
|
||||
PROG=/usr/sbin/mentohust
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG"
|
||||
procd_set_param respawn
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
stop_service() {
|
||||
"$PROG" -k
|
||||
}
|
Loading…
Reference in New Issue