aboutsummaryrefslogtreecommitdiff
path: root/utils/ttyd
diff options
context:
space:
mode:
authorShuanglei Tao <tsl0922@gmail.com>2016-10-01 18:41:22 +0800
committerShuanglei Tao <tsl0922@gmail.com>2016-10-01 18:41:22 +0800
commitfbdcdd8a4a4db362b26b7b51f78645da9b344037 (patch)
treec7e956c2071952f185c489bf28bbba66c1500738 /utils/ttyd
parenta457d89b3267ab3f8ce4db08839584c2ae9ccf98 (diff)
ttyd: remove the default insecure init script (#3271)
Signed-off-by: Shuanglei Tao <tsl0922@gmail.com>
Diffstat (limited to 'utils/ttyd')
-rw-r--r--utils/ttyd/Makefile5
-rw-r--r--utils/ttyd/files/ttyd.init26
2 files changed, 1 insertions, 30 deletions
diff --git a/utils/ttyd/Makefile b/utils/ttyd/Makefile
index 7bf743e11..ed0228fe9 100644
--- a/utils/ttyd/Makefile
+++ b/utils/ttyd/Makefile
@@ -29,7 +29,7 @@ define Package/ttyd
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Command-line tool for sharing terminal over the web
- DEPENDS:=+openssl +libjson-c +libpthread +libwebsockets-openssl
+ DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-openssl
URL:=https://github.com/tsl0922/ttyd
SUBMENU:=Terminal
MAINTAINER:=Shuanglei Tao <tsl0922@gmail.com>
@@ -42,9 +42,6 @@ endef
define Package/ttyd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ttyd $(1)/usr/bin/
-
- $(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_BIN) ./files/ttyd.init $(1)/etc/init.d/ttyd
endef
$(eval $(call BuildPackage,ttyd))
diff --git a/utils/ttyd/files/ttyd.init b/utils/ttyd/files/ttyd.init
deleted file mode 100644
index d8d6d105e..000000000
--- a/utils/ttyd/files/ttyd.init
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh /etc/rc.common
-
-START=99
-SERVICE_WRITE_PID=1
-SERVICE_DAEMONIZE=1
-
-start() {
- logger -t TTYD 'Starting ttyd service'
- service_start /usr/bin/ttyd login
- return 0
-}
-
-stop() {
- if [ -n "`pidof ttyd`" ]; then
- logger -t TTYD 'Shutting down ttyd service'
- service_stop /usr/bin/ttyd
- fi
- return 0
-}
-
-restart() {
- logger -t TTYD 'Restarting ttyd service'
- stop
- sleep 2 # give time to shutdown
- start
-}