Changeset 10


Ignore:
Timestamp:
2004-04-13T06:38:04+02:00 (12 years ago)
Author:
mbm
Message:

fixes for static .. gateway & resolv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/etc/networking.sh

    r8 r10  
    8585      $DEBUG ifconfig $if $if_ip netmask $if_netmask up 
    8686 
    87       ipcalc -s "$ip_gateway" || return  
    88       $DEBUG route add default gw $ip_gateway 
     87      ipcalc -s "$if_gateway" || return  
     88      $DEBUG route add default gw $if_gateway 
     89 
     90      [ -f /etc/resolv.conf ] && return 
     91 
     92      echo "# --- creating /etc/resolv.conf ---" 
     93      for dns in $(nvram_get ${if}_dns); do { 
     94        echo "nameserver $dns" >> /etc/resolv.conf 
     95      }; done 
    8996    ;; 
    9097    dhcp) 
Note: See TracChangeset for help on using the changeset viewer.