Changeset 3559

Show
Ignore:
Timestamp:
09/06/07 12:48:13 (5 years ago)
Author:
tg
Message:

by suggestion of austriancoder@ enable a configuration option to set
the list of nameservers statically, agreed in
Message-ID: <3192d3cd0709060328p93b2f4cxf1f765c489a97f0a@mail.gmail.com>
untested, of course ☻

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/Config.in.network

    r3540 r3559  
    470470 
    471471endmenu 
     472 
     473config FWRT_NETWORK_USE_NAMESERVERS 
     474        bool "Static DNS configuration" 
     475        default n 
     476        help 
     477         Enable this to set the nameservers manually 
     478 
     479config FWRT_NETWORK_NAMESERVERS 
     480        string "Nameservers (space separated)" 
     481        depends on FWRT_NETWORK_USE_NAMESERVERS 
     482        default "" 
     483        help 
     484         Enter the nameservers (resolvers) to use here. 
  • trunk/freewrt/package/base-files/Makefile

    r3545 r3559  
    1010PKG_NAME:=              base-files 
    1111PKG_VERSION:=           1.1 
    12 PKG_RELEASE:=           31 
     12PKG_RELEASE:=           32 
    1313WRKDIST=                ${WRKDIR}/base-files 
    1414NO_DISTFILES:=          1 
     
    7777        mkdir -p $(IDIR_BASE_FILES)/usr/lib 
    7878        mkdir -p $(IDIR_BASE_FILES)/usr/bin 
     79ifeq ($(strip $(subst ",,${FWRT_NETWORK_NAMESERVERS})),) 
    7980        ln -sf ../tmp/resolv.conf $(IDIR_BASE_FILES)/etc/resolv.conf 
     81else 
     82        for servent in $(strip $(subst ",,${FWRT_NETWORK_NAMESERVERS})); do \ 
     83                echo "nameserver $$servent"; \ 
     84        done >${IDIR_BASE_FILES}/etc/resolv.conf 
     85endif 
    8086        ln -sf ../proc/mounts $(IDIR_BASE_FILES)/etc/mtab 
    8187        rm -rf $(IDIR_BASE_FILES)/var