Permalink
Browse files

dropbear: unify config for start script

  • Loading branch information...
ryzhovau committed Dec 23, 2018
1 parent 9cbe9fa commit 155693e180a807dfb3ccbac886aef87709b78960
@@ -57,7 +57,7 @@ endef

define Package/dropbear/conffiles
/opt/etc/dropbear/dropbear_rsa_host_key
/opt/etc/config/dropbear
/opt/etc/config/dropbear.conf
endef

define Package/dropbearconvert
@@ -135,10 +135,10 @@ define Package/dropbear/install
$(LN) ../sbin/dropbear $(1)/opt/bin/ssh
$(LN) ../sbin/dropbear $(1)/opt/bin/dbclient
$(LN) ../sbin/dropbear $(1)/opt/bin/dropbearkey
$(INSTALL_DIR) $(1)/opt/etc/{dropbear,init.d}
$(INSTALL_DIR) $(1)/opt/etc/{config,dropbear,init.d}
$(INSTALL_BIN) ./files/S51dropbear $(1)/opt/etc/init.d
$(INSTALL_DIR) $(1)/opt/etc/config
$(INSTALL_CONF) ./files/dropbear.conf $(1)/opt/etc/config/dropbear
$(INSTALL_CONF) ./files/dropbear.conf $(1)/opt/etc/config
endef

define Package/dropbearconvert/install
@@ -3,9 +3,9 @@
PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin

PIDFILE="/opt/var/run/dropbear.pid"
PORT=`awk '{print $3}' /opt/etc/config/dropbear`
DROPBEAR="/opt/sbin/dropbear"

. /opt/etc/config/dropbear.conf

dropbear_status ()
{
@@ -1 +1 @@
PORT = 22
PORT=22

0 comments on commit 155693e

Please sign in to comment.