X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/9f686291f7c97ebac9a97ddfdd84cfbf6e954324..56b51041116d9717041af9625f9573642c23711f:/package/dropbear/files/dropbear.init diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init index ef69e9017..b629c1e48 100755 --- a/package/dropbear/files/dropbear.init +++ b/package/dropbear/files/dropbear.init @@ -5,10 +5,10 @@ config_cb() { local cfg="$CONFIG_SECTION" local nopasswd - local type - config_get cfgtype "$cfg" TYPE + local cfgt + config_get cfgt "$cfg" TYPE - case "$cfgtype" in + case "$cfgt" in dropbear) config_get passauth $cfg PasswordAuth config_get port $cfg Port @@ -16,7 +16,7 @@ config_cb() { case "$passauth" in no|off|disabled|0) nopasswd=1;; esac - DROPBEAR_ARGS="${port:+-p $port} ${nopasswd:+-s}" + DROPBEAR_ARGS="${nopasswd:+-s }${port:+-p $port}" ;; esac }