[LEDE-DEV] [PATCH] base-files: config_generate: keep ipv6 interface in sync

Roman Yeryomin roman at advem.lv
Tue Dec 5 15:40:05 PST 2017


On 2017-12-05 21:52, Hans Dedecker wrote:
> On Tue, Dec 5, 2017 at 5:22 PM, Roman Yeryomin <roman at advem.lv> wrote:
>> It's better not to configure ifname separately since they
>> are tied together.
>> 
>> Signed-off-by: Roman Yeryomin <roman at advem.lv>
>> ---
>>  package/base-files/files/bin/config_generate | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/package/base-files/files/bin/config_generate 
>> b/package/base-files/files/bin/config_generate
>> index a8311fc595..d7a6829d77 100755
>> --- a/package/base-files/files/bin/config_generate
>> +++ b/package/base-files/files/bin/config_generate
>> @@ -113,7 +113,7 @@ generate_network() {
>>                                 set network.$1.proto='dhcp'
>>                                 delete network.${1}6
>>                                 set network.${1}6='interface'
>> -                               set network.${1}6.ifname='$ifname'
>> +                               set network.${1}6.ifname='@${1}'
>>                                 set network.${1}6.proto='dhcpv6'
>>                         EOF
>>                 ;;
>> --
>> 2.14.1
> NACK
> 
> This makes the IPv6 interface dependant on the operational status of
> the IPv4 interface; meaning the IPv6 interface will not be started if
> the IPv4 interface does not get an IP address.
> Especially this would break wan connectivity if the  wan link only 
> supports IPv6
> 

Hmm... right, will just ${1} be better?

Regards,
Roman



More information about the Lede-dev mailing list