Changeset 19127


Ignore:
Timestamp:
2010-01-14T19:43:05+01:00 (8 years ago)
Author:
jow
Message:

[package] dropbear: add GatewayPorts (-a) option (#6503)

Location:
trunk/package/dropbear
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/dropbear/Makefile

    r17113 r19127  
    1010PKG_NAME:=dropbear 
    1111PKG_VERSION:=0.52 
    12 PKG_RELEASE:=3 
     12PKG_RELEASE:=4 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • trunk/package/dropbear/files/dropbear.init

    r18009 r19127  
    3939        config_get bannerfile ${section} BannerFile 
    4040        [ -f $bannerfile ] || bannerfile='' 
    41  
     41        # D) gatewayports 
     42        local gatewayports 
     43        config_get_bool gatewayports "${section}" GatewayPorts 0 
     44        [ "${gatewayports}" -eq 1 ] || gatewayports='' 
    4245        # concatenate parameters 
    4346        local args 
    44         args="${nopasswd:+-s }${port:+-p ${port} }${bannerfile:+-b $bannerfile }-P /var/run/${NAME}.${PIDCOUNT}.pid" 
     47        args="${nopasswd:+-s }${port:+-p ${port} }${bannerfile:+-b $bannerfile }${gatewayports:+-a }-P /var/run/${NAME}.${PIDCOUNT}.pid" 
    4548 
    4649        # execute program and return its exit code 
Note: See TracChangeset for help on using the changeset viewer.