Changeset 18009


Ignore:
Timestamp:
2009-10-08T20:58:15+02:00 (7 years ago)
Author:
blogic
Message:

#4985 - fixes dropbear banner file, thanks Roman Yepishev

Location:
trunk/package/dropbear/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/dropbear/files/dropbear.config

    r6501 r18009  
    22        option PasswordAuth 'on' 
    33        option Port         '22' 
     4#       option BannerFile   '/etc/banner' 
  • trunk/package/dropbear/files/dropbear.init

    r17113 r18009  
    3535        local port 
    3636        config_get port "${section}" Port 
     37        # C) banner file 
     38        local bannerfile 
     39        config_get bannerfile ${section} BannerFile 
     40        [ -f $bannerfile ] || bannerfile='' 
    3741 
    3842        # concatenate parameters 
    3943        local args 
    40         args="${nopasswd:+-s }${port:+-p ${port}} -P /var/run/${NAME}.${PIDCOUNT}.pid" 
     44        args="${nopasswd:+-s }${port:+-p ${port} }${bannerfile:+-b $bannerfile }-P /var/run/${NAME}.${PIDCOUNT}.pid" 
    4145 
    4246        # execute program and return its exit code 
Note: See TracChangeset for help on using the changeset viewer.