Changeset 20960


Ignore:
Timestamp:
2010-04-17T19:45:54+02:00 (8 years ago)
Author:
acinonyx
Message:

package] dropbear: Add bind 'Interface' option (#7149)

File:
1 edited

Legend:

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

    r20219 r20960  
    3333        config_get_bool passauth "${section}" PasswordAuth 1 
    3434        [ "${passauth}" -eq 0 ] && nopasswd=1 
    35         # B) listen port 
     35        # B) listen interface and port 
    3636        local port 
     37        local interface 
     38        local address 
    3739        config_get port "${section}" Port 
     40        config_get interface "${section}" Interface 
     41        config_get address "${interface}" ipaddr 
     42        port="${address:+${address}:}${port}" 
    3843        # C) banner file 
    3944        local bannerfile 
     
    8792          -s /etc/dropbear/dropbear_dss_host_key ] || keygen 
    8893 
     94        include /lib/network 
     95        scan_interfaces 
    8996        config_load "${NAME}" 
    9097        config_foreach dropbear_start dropbear 
Note: See TracChangeset for help on using the changeset viewer.