START/STOP values must be specified in the init script
[openwrt/.git] / package / dropbear / files / dropbear.init
index 58b0bc2fabe99b032663c97b0f5ffc305ef42f4a..f671df787e92e49bc4c94f8409cfd7a038f1c758 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org
+START=50
 # Copyright (C) 2006 Carlos Sobrinho
 
 config_cb() {
@@ -16,7 +17,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
 }