]>
git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/35network-legacy/parse-team.sh
4 # team=<teammaster>:<teamslaves>
6 # teamslaves is a comma-separated list of physical (ethernet) interfaces
13 set -- "$@" "${v%%:*}"
18 2) teammaster
=$1; teamslaves
=$
(str_replace
"$2" "," " ") ;;
19 *) die
"team= requires two parameters" ;;
24 for team
in $
(getargs team
); do
25 [ "$team" = "team" ] && continue
30 parseteam
"$team" ||
continue
32 echo "teammaster=$teammaster" > /tmp
/team.
${teammaster}.info
33 echo "teamslaves=\"$teamslaves\"" >> /tmp
/team.
${teammaster}.info
35 if ! [ -e /etc
/teamd
/${teammaster}.conf
]; then
36 warn
"Team master $teammaster specified, but no /etc/teamd/$teammaster.conf present. Using activebackup."
38 printf -- "%s" '{"runner": {"name": "activebackup"}, "link_watch": {"name": "ethtool"}}' > "/etc/teamd/${teammaster}.conf"