Changeset 27145


Ignore:
Timestamp:
2011-06-09T14:25:48+02:00 (7 years ago)
Author:
jow
Message:

[package] base-files: if an ip6addr without a prefix is given, assume /128 - otherwise the busybox utilities will interpret it as /0 and create an invalid default route

Location:
trunk/package/base-files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/Makefile

    r27132 r27145  
    1111 
    1212PKG_NAME:=base-files 
    13 PKG_RELEASE:=72 
     13PKG_RELEASE:=73 
    1414 
    1515PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ 
  • trunk/package/base-files/files/lib/network/config.sh

    r27132 r27145  
    236236        config_get metric "$config" metric 
    237237 
     238        case "$ip6addr" in 
     239                */*) ;; 
     240                *:*) ip6addr="$ip6addr/128" ;; 
     241        esac 
     242 
    238243        [ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask "$netmask" broadcast "${bcast:-+}" 
    239244        [ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr" 
Note: See TracChangeset for help on using the changeset viewer.