Changeset 3600

Show
Ignore:
Timestamp:
10/16/07 13:49:35 (1 year ago)
Author:
tg
Message:

the WAN interface’s “gateway” statement shall be OPTIONAL
people, please realise that the WAN port is not necessarily the uplink

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/base-files/Makefile

    r3559 r3600  
    1010PKG_NAME:=              base-files 
    1111PKG_VERSION:=           1.1 
    12 PKG_RELEASE:=           32 
     12PKG_RELEASE:=           33 
    1313WRKDIST=                ${WRKDIR}/base-files 
    1414NO_DISTFILES:=          1 
     
    182182        $(SED) "s/@FWRT_NETMASK@/$(FWRT_NETWORK_WAN_IP_NETMASK)/g" \ 
    183183            $(IDIR_BASE_FILES)/etc/network/interfaces 
    184         $(SED) "s/@FWRT_GATEWAY@/$(FWRT_NETWORK_WAN_IP_GATEWAY)/g" \ 
    185             $(IDIR_BASE_FILES)/etc/network/interfaces 
     184ifeq ($(strip $(subst ",,${FWRT_NETWORK_WAN_IP_GATEWAY})),) 
     185        printf ',g/@FWRT_GATEWAY@/d\nwq\n' | \ 
     186            ed -s ${IDIR_BASE_FILES}/etc/network/interfaces 
     187else 
     188        printf ',g/@FWRT_GATEWAY@/s//$(strip $(subst ",,${FWRT_NETWORK_WAN_IP_GATEWAY}))/\nwq\n' | \ 
     189            ed -s ${IDIR_BASE_FILES}/etc/network/interfaces 
     190endif 
    186191endif 
    187192ifeq ($(strip $(subst ",,${FWRT_NETWORK_WAN_LLADDR})),)