This file is indexed.

/usr/lib/dracut/modules.d/40network/parse-team.sh is in dracut-network 040+1-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
#
# Format:
#       team=<teammaster>:<teamslaves>
#
#       teamslaves is a comma-separated list of physical (ethernet) interfaces
#

# return if team already parsed
[ -n "$teammaster" ] && return

# Check if team parameter is valid
if getarg team= >/dev/null ; then
    :
fi

parseteam() {
    local v=${1}:
    set --
    while [ -n "$v" ]; do
        set -- "$@" "${v%%:*}"
        v=${v#*:}
    done

    unset teammaster teamslaves
    case $# in
    2)  teammaster=$1; teamslaves=$(str_replace "$2" "," " ") ;;
    *)  die "team= requires two parameters" ;;
    esac
}

unset teammaster teamslaves

if getarg team>/dev/null; then
    # Read team= parameters if they exist
    team="$(getarg team=)"
    if [ ! "$team" = "team" ]; then
        parseteam "$(getarg team=)"
    fi

    echo "teammaster=$teammaster" > /tmp/team.info
    echo "teamslaves=\"$teamslaves\"" >> /tmp/team.info
    return
fi