$43 GRAYBYTE WORDPRESS FILE MANAGER $97

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/usr/lib/dracut/modules.d/35network-legacy/

HOME
Current File : /usr/lib/dracut/modules.d/35network-legacy//parse-team.sh
#!/bin/sh
#
# Format:
#       team=<teammaster>:<teamslaves>[:<teamrunner>]
#
#       teamslaves is a comma-separated list of physical (ethernet) interfaces
#       teamrunner is the runner type to be used (see teamd.conf(5)); defaults to activebackup
#
#       team without parameters assumes team=team0:eth0,eth1:activebackup
#

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

    case $# in
    0)  teammaster=team0; teamslaves="eth0 eth1"; teamrunner="activebackup" ;;
    1)  teammaster=$1; teamslaves="eth0 eth1"; teamrunner="activebackup" ;;
    2)  teammaster=$1; teamslaves=$(str_replace "$2" "," " "); teamrunner="activebackup" ;;
    3)  teammaster=$1; teamslaves=$(str_replace "$2" "," " "); teamrunner=$3 ;;
    *)  die "team= requires zero to three parameters" ;;
    esac
    return 0
}

for team in $(getargs team); do
    [ "$team" = "team" ] && continue

    unset teammaster
    unset teamslaves
    unset teamrunner

    parseteam "$team" || continue

    echo "teammaster=$teammaster" > /tmp/team.${teammaster}.info
    echo "teamslaves=\"$teamslaves\"" >> /tmp/team.${teammaster}.info
    echo "teamrunner=\"$teamrunner\"" >> /tmp/team.${teammaster}.info

    if ! [ -e /etc/teamd/${teammaster}.conf ]; then
        warn "Team master $teammaster specified, but no /etc/teamd/$teammaster.conf present. Using $teamrunner."
        mkdir -p /etc/teamd
        printf -- "%s" "{\"runner\": {\"name\": \"$teamrunner\"}, \"link_watch\": {\"name\": \"ethtool\"}}" > "/tmp/${teammaster}.conf"
    fi
done



Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Dec 2025 6.54 PM
root / root
0755
dhclient-script.sh
9.154 KB
17 Dec 2025 6.54 PM
root / root
0755
dhclient.conf
0.296 KB
8 Oct 2018 1.38 PM
root / root
0644
ifup.sh
15.179 KB
17 Dec 2025 6.54 PM
root / root
0755
kill-dhclient.sh
0.246 KB
8 Oct 2018 1.38 PM
root / root
0755
module-setup.sh
2.813 KB
17 Dec 2025 6.54 PM
root / root
0755
net-genrules.sh
4.013 KB
17 Dec 2025 6.54 PM
root / root
0755
parse-bond.sh
1.96 KB
8 Oct 2018 1.38 PM
root / root
0755
parse-bridge.sh
1.098 KB
8 Oct 2018 1.38 PM
root / root
0755
parse-ibft.sh
0.276 KB
8 Oct 2018 1.38 PM
root / root
0755
parse-ifname.sh
0.539 KB
8 Oct 2018 1.38 PM
root / root
0755
parse-ip-opts.sh
4.834 KB
17 Dec 2025 6.54 PM
root / root
0755
parse-team.sh
1.563 KB
17 Dec 2025 6.54 PM
root / root
0755
parse-vlan.sh
0.646 KB
8 Oct 2018 1.38 PM
root / root
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF