diff options
author | John Crispin <john@openwrt.org> | 2009-10-08 18:58:15 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2009-10-08 18:58:15 +0000 |
commit | 76ff676a1e403fdb7a14dc199db07b052d9da9b3 (patch) | |
tree | 8fac78333269d44f699a73ec8d93675982683c89 /package/dropbear/files/dropbear.init | |
parent | ba78d97022f9f6b0e7951f05475f4933ab0d8aac (diff) | |
download | upstream-76ff676a1e403fdb7a14dc199db07b052d9da9b3.tar.gz upstream-76ff676a1e403fdb7a14dc199db07b052d9da9b3.tar.bz2 upstream-76ff676a1e403fdb7a14dc199db07b052d9da9b3.zip |
#4985 - fixes dropbear banner file, thanks Roman Yepishev
SVN-Revision: 18009
Diffstat (limited to 'package/dropbear/files/dropbear.init')
-rwxr-xr-x | package/dropbear/files/dropbear.init | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init index c91d0a7166..30cb44b1b1 100755 --- a/package/dropbear/files/dropbear.init +++ b/package/dropbear/files/dropbear.init @@ -34,10 +34,14 @@ dropbear_start() # B) listen port local port config_get port "${section}" Port + # C) banner file + local bannerfile + config_get bannerfile ${section} BannerFile + [ -f $bannerfile ] || bannerfile='' # concatenate parameters local args - args="${nopasswd:+-s }${port:+-p ${port}} -P /var/run/${NAME}.${PIDCOUNT}.pid" + args="${nopasswd:+-s }${port:+-p ${port} }${bannerfile:+-b $bannerfile }-P /var/run/${NAME}.${PIDCOUNT}.pid" # execute program and return its exit code [ "${verbosed}" -ne 0 ] && echo "${initscript}: section ${section} starting ${PROG} ${args}" |