"Fossies" - the Fresh Open Source Software Archive

Member "ipfire-2.x-2.27-core174/src/initscripts/networking/red.up/10-multicast" (7 Apr 2023, 189 Bytes) of package /linux/misc/ipfire-2.x-2.27-core174.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 ### This script disables multicast on the red interface
    4 
    5 IFACE=`cat /var/ipfire/red/iface 2>/dev/null | tr -d '\012'`
    6 
    7 [ "$IFACE" != "" ] && ifconfig $IFACE -multicast
    8 
    9 exit 0