#4985 - fixes dropbear banner file, thanks Roman Yepishev
SVN-Revision: 18009
This commit is contained in:
parent
ba78d97022
commit
76ff676a1e
@ -1,3 +1,4 @@
|
||||
config dropbear
|
||||
option PasswordAuth 'on'
|
||||
option Port '22'
|
||||
# option BannerFile '/etc/banner'
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user