]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
when MULTICAST is specified, use it's value literal
authorTomasz Pala <gotar@pld-linux.org>
Fri, 5 Aug 2016 17:19:46 +0000 (19:19 +0200)
committerTomasz Pala <gotar@pld-linux.org>
Fri, 5 Aug 2016 17:19:46 +0000 (19:19 +0200)
- this allows configurations like MULTICAST="off allmulticast on",
when no MULTICAST provided, do not disable it on VLAN interfaces

lib/functions.network

index a68ed7621fa11b0f9cedd0e13c21d3666c4b4061..bb7a5254ea8afe611caadc4b011888a8865a974e 100644 (file)
@@ -232,11 +232,11 @@ setup_ip_param ()
        esac
 
        # Multicast ready devices
-       if is_yes "$MULTICAST"; then
-               MULTICAST="on"
+       if [ -n "$MULTICAST" ]; then
+               MULTICAST="$MULTICAST"
        else
                case "$DEVICETYPE" in
-                 eth|br)
+                 eth|br|vlan)
                        MULTICAST="on"
                        ;;
                  *)
This page took 0.128034 seconds and 4 git commands to generate.