Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/dracut/modules..../95fcoe
File: fcoe-genrules.sh
#!/bin/sh
[0] Fix | Delete
[1] Fix | Delete
# We use (fcoe_interface or fcoe_mac) and fcoe_dcb as set by parse-fcoe.sh
[2] Fix | Delete
# If neither mac nor interface are set we don't continue
[3] Fix | Delete
[ -z "$fcoe_interface" -a -z "$fcoe_mac" ] && return
[4] Fix | Delete
[5] Fix | Delete
# Write udev rules
[6] Fix | Delete
{
[7] Fix | Delete
if [ -n "$fcoe_mac" ] ; then
[8] Fix | Delete
printf 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="%s", RUN+="/sbin/initqueue --onetime --unique --name fcoe-up-$env{INTERFACE} /sbin/fcoe-up $env{INTERFACE} %s %s"\n' "$fcoe_mac" "$fcoe_dcb" "$fcoe_mode"
[9] Fix | Delete
printf 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="%s", RUN+="/sbin/initqueue --onetime --timeout --unique --name fcoe-timeout-$env{INTERFACE} /sbin/fcoe-up $env{INTERFACE} %s %s"\n' "$fcoe_mac" "$fcoe_dcb" "$fcoe_mode"
[10] Fix | Delete
else
[11] Fix | Delete
printf 'ACTION=="add", SUBSYSTEM=="net", NAME=="%s", RUN+="/sbin/initqueue --onetime --unique --name fcoe-up-$env{INTERFACE} /sbin/fcoe-up $env{INTERFACE} %s %s"\n' "$fcoe_interface" "$fcoe_dcb" "$fcoe_mode"
[12] Fix | Delete
printf 'ACTION=="add", SUBSYSTEM=="net", NAME=="%s", RUN+="/sbin/initqueue --onetime --timeout --unique --name fcoe-timeout-$env{INTERFACE} /sbin/fcoe-up $env{INTERFACE} %s %s"\n' "$fcoe_interface" "$fcoe_dcb" "$fcoe_mode"
[13] Fix | Delete
fi
[14] Fix | Delete
} >> /etc/udev/rules.d/92-fcoe.rules
[15] Fix | Delete
[16] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function