ACIL FM
Dark
Refresh
Current DIR:
/lib/dracut/modules.d/35network-legacy
/
lib
dracut
modules.d
35network-legacy
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
dhclient-script.sh
9.6 MB
chmod
View
DL
Edit
Rename
Delete
dhclient.conf
450 B
chmod
View
DL
Edit
Rename
Delete
dhcp-multi.sh
4.53 MB
chmod
View
DL
Edit
Rename
Delete
ifup.sh
17.75 MB
chmod
View
DL
Edit
Rename
Delete
kill-dhclient.sh
274 B
chmod
View
DL
Edit
Rename
Delete
module-setup.sh
3.15 MB
chmod
View
DL
Edit
Rename
Delete
net-genrules.sh
4.29 MB
chmod
View
DL
Edit
Rename
Delete
parse-bond.sh
2.13 MB
chmod
View
DL
Edit
Rename
Delete
parse-bridge.sh
1.15 MB
chmod
View
DL
Edit
Rename
Delete
parse-ibft.sh
281 B
chmod
View
DL
Edit
Rename
Delete
parse-ifname.sh
559 B
chmod
View
DL
Edit
Rename
Delete
parse-ip-opts.sh
5.01 MB
chmod
View
DL
Edit
Rename
Delete
parse-team.sh
1.72 MB
chmod
View
DL
Edit
Rename
Delete
parse-vlan.sh
713 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/dracut/modules.d/35network-legacy/parse-bond.sh
#!/usr/bin/sh # # Format: # bond=<bondname>[:<bondslaves>[:<options>[:<mtu>]]] # # bondslaves is a comma-separated list of physical (ethernet) interfaces # options is a comma-separated list on bonding options (modinfo bonding for details) in format compatible with initscripts # if options include multi-valued arp_ip_target option, then its values should be separated by semicolon. # # bond without parameters assumes bond=bond0:eth0,eth1:mode=balance-rr # # if the mtu is specified, it will be set on the bond master # # We translate list of slaves to space-separated here to make it easier to loop over them in ifup # Ditto for bonding options parsebond() { local v=${1}: set -- while [ -n "$v" ]; do set -- "$@" "${v%%:*}" v=${v#*:} done case $# in 0) bondname=bond0 bondslaves="eth0 eth1" ;; 1) bondname=$1 bondslaves="eth0 eth1" ;; 2) bondname=$1 bondslaves=$(str_replace "$2" "," " ") ;; 3) bondname=$1 bondslaves=$(str_replace "$2" "," " ") bondoptions=$(str_replace "$3" "," " ") ;; 4) bondname=$1 bondslaves=$(str_replace "$2" "," " ") bondoptions=$(str_replace "$3" "," " ") bondmtu=$4 ;; *) die "bond= requires zero to four parameters" ;; esac } # Parse bond for bondname, bondslaves, bondmode, bondoptions and bondmtu for bond in $(getargs bond=); do unset bondname unset bondslaves unset bondoptions unset bondmtu if [ "$bond" != "bond" ]; then parsebond "$bond" fi # Simple default bond if [ -z "$bondname" ]; then bondname=bond0 bondslaves="eth0 eth1" fi # Make it suitable for initscripts export bondoptions=$(str_replace "$bondoptions" ";" ",") { echo "bondname=$bondname" echo "bondslaves=\"$bondslaves\"" echo "bondoptions=\"$bondoptions\"" echo "bondmtu=\"$bondmtu\"" } > "/tmp/bond.${bondname}.info" done
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply