Changeset 42326


Ignore:
Timestamp:
2014-08-29T20:16:41+02:00 (3 years ago)
Author:
blogic
Message:

dropbear: add mdns support to the init.d script

Signed-off-by: John Crispin <blogic@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/dropbear/files/dropbear.init

    r42278 r42326  
    4747                'Port:list(port):22' \ 
    4848                'SSHKeepAlive:uinteger:300' \ 
    49                 'IdleTimeout:uinteger:0' 
     49                'IdleTimeout:uinteger:0' \ 
     50                'mdns:uinteger:1' 
    5051} 
    5152 
     
    5455        local PasswordAuth enable Interface GatewayPorts \ 
    5556                RootPasswordAuth RootLogin rsakeyfile \ 
    56                 dsskeyfile BannerFile Port SSHKeepAlive IdleTimeout 
     57                dsskeyfile BannerFile Port SSHKeepAlive IdleTimeout \ 
     58                mdns 
    5759 
    5860        validate_section_dropbear "${1}" || { 
     
    7880        [ "${IdleTimeout}" -ne 0 ] && procd_append_param command -I "${IdleTimeout}" 
    7981        [ "${SSHKeepAlive}" -ne 0 ] && procd_append_param command -K "${SSHKeepAlive}" 
     82        [ "${mdns}" -ne 0 ] && procd_add_mdns "ssh" "tcp" "$Port" "daemon=dropbear" 
    8083        procd_close_instance 
    8184} 
Note: See TracChangeset for help on using the changeset viewer.