Control: tags -1 + patch

El 18/03/22 a las 10:26, Aleksandr Muravjov escribió:
> I've also found that this bug was introduced in commit
> a60279a538bf72c82c99d65807b8124e74c6c133 .
> Here is a my fix for this issue:
> 
> diff --git a/link.defn b/link.defn
> --- a/link.defn
> +++ b/link.defn
> @@ -27,8 +27,10 @@ method none
>         if (iface_is_lo())
>      [[ip link set %iface0% alias "%description%"]]
>    down
> -    if test `cat /sys/class/net/%link%/type` -eq 32; then \
> -        echo 0x%vlan_id1% > /sys/class/net/%link%/delete_child; \
> +    if test -d /sys/class/net/%link%/device/infiniband; then \
> +        if test `cat /sys/class/net/%link%/type` -eq 32; then \
> +            echo 0x%vlan_id1% > /sys/class/net/%link%/delete_child; \
> +        fi \
>      else \
>          ip link del %iface%; \
>      fi if (iface_has(".") && !iface_has(":"))

Thanks! I'll take a look at this soon.

 -- Santiago

Attachment: signature.asc
Description: PGP signature

Reply via email to