openwrt: remove the default insecure init script

This commit is contained in:
Shuanglei Tao
2017-04-06 22:44:24 +08:00
parent 3580e80783
commit 0a9ff2fa7d
2 changed files with 0 additions and 29 deletions

View File

@@ -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))

View File

@@ -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
}