[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.20
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
lib
/
dracut
/
modules.d
/
35network-legacy
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 dhclient-script.sh
9,374 B
SET
[ EDIT ]
|
[ DEL ]
📄 dhclient.conf
303 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup.sh
15,543 B
SET
[ EDIT ]
|
[ DEL ]
📄 kill-dhclient.sh
252 B
SET
[ EDIT ]
|
[ DEL ]
📄 module-setup.sh
2,880 B
SET
[ EDIT ]
|
[ DEL ]
📄 net-genrules.sh
4,109 B
SET
[ EDIT ]
|
[ DEL ]
📄 parse-bond.sh
2,007 B
SET
[ EDIT ]
|
[ DEL ]
📄 parse-bridge.sh
1,124 B
SET
[ EDIT ]
|
[ DEL ]
📄 parse-ibft.sh
283 B
SET
[ EDIT ]
|
[ DEL ]
📄 parse-ifname.sh
552 B
SET
[ EDIT ]
|
[ DEL ]
📄 parse-ip-opts.sh
4,950 B
SET
[ EDIT ]
|
[ DEL ]
📄 parse-team.sh
1,600 B
SET
[ EDIT ]
|
[ DEL ]
📄 parse-vlan.sh
662 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: 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