Subject: Re: [PATCH net-next]: net: remove ifalias on empty given alias

From: Stephen Hemminger <[email-masked]>
Date: Tue, 23 Sep 2008 13:14:52 -0700

On Tue, 23 Sep 2008 21:52:08 +0200
Oliver Hartkopp <[email-masked]> wrote:

> This patch removes the potentially allocated ifalias when the (new) 
> given alias is empty.
> 
> E.g. when setting
> 
> echo "" > /sys/class/net/eth0/ifalias
> 
> Signed-off-by: Oliver Hartkopp <[email-masked]>
> ---
> 
> Hello Stephen,
> 
> this patch allows to 'remove' or reset the ifalias by giving an empty alias.
> The patch is tested.
> Btw. ifalias is a nice idea also for CAN bus people to 'name' a given 
> CAN bus.
> 
> Thanks & regards,
> Oliver
> 
> 

Acked-by: Stephen Hemminger <[email-masked]>

Also, udev could put a default value in based on the slot information it has.