rtty: Update to 3.1.1 5575/head
authorJianhui Zhao <jianhuizhao329@gmail.com>
Tue, 6 Feb 2018 09:20:46 +0000 (17:20 +0800)
committerJianhui Zhao <jianhuizhao329@gmail.com>
Wed, 7 Feb 2018 09:10:08 +0000 (17:10 +0800)
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
utils/rtty/Makefile
utils/rtty/files/rtty.config
utils/rtty/files/rtty.init

index a04f584b038695d6deb01eef7abc92228273f509..f8c6c6a7437edf0c740773274052b54801bd44fb 100755 (executable)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rtty
-PKG_VERSION:=2.2.0
+PKG_VERSION:=3.1.2
 PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
 PKG_SOURCE_URL=https://github.com/zhaojh329/rtty.git
-PKG_MIRROR_HASH:=23a203351fdd47acfd16d3c3b3e3d51dd65a5d9e8ca89d4b1521d40c40616102
+PKG_MIRROR_HASH:=aef16014cca633550adf3385149c883a618b6875479d8874887bea41d783bd63
 
 PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
 
index 8e7123a9be23c0479d047f72d3e27582dd1f27e8..dd8694a0f1c7c74d8f2982119a03a9a142596e88 100755 (executable)
@@ -10,3 +10,4 @@
 #   option  host        'your-server-host'  # Server host
 #   option  port        '5912'              # Server Port
 #   option  ssl         1                   # Whether to use ssl
+#   option  ping        5                   # heartbeat interval(second)
index ab3ba131d4bab0d9c91ca651a80ca1e0f0ce4afc..1c7c6e44dede33295545a27366a3e07e1eadf5b1 100644 (file)
@@ -17,7 +17,8 @@ start_rtty() {
         'description:maxlength(126)' \
         'host:host' \
         'port:port' \
-        'ssl:bool:0'
+        'ssl:bool:0' \
+        'ping:uinteger:5'
     
     [ $? -eq 1 ] && {
         echo "validation failed" >&2
@@ -42,7 +43,7 @@ start_rtty() {
     }
 
     procd_open_instance
-    procd_set_param command $BIN -h $host -p $port -a
+    procd_set_param command $BIN -h $host -p $port -a -P $ping
     [ -n "$ifname" ] && procd_append_param command -i "$ifname"
     [ -n "$id" ] && procd_append_param command -I "$id"
     [ -n "$description" ] && procd_append_param command -d "$description"