Add vxlan_sys_4789 check script

This commit is contained in:
Dmitry Vlasov
2021-08-04 02:42:23 +03:00
parent 79b62cf03a
commit 96847fe7cf
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
while :
do
while [[ ! -e /sys/class/net/vxlan_sys_4789 ]]
do
if [[ -e /etc/sysconfig/network-scripts/ifcfg-vxlan_sys_4789 ]]
then
rm /etc/sysconfig/network-scripts/ifcfg-vxlan_sys_4789
fi
sleep 5
done
if [[ ! -e /etc/sysconfig/network-scripts/ifcfg-vxlan_sys_4789 ]]
then
ethtool -K vxlan_sys_4789 tx off
echo -e 'DEVICE="vxlan_sys_4789"\nETHTOOL_OPTS="-K ${DEVICE} tx off"' > /etc/sysconfig/network-scripts/ifcfg-vxlan_sys_4789
fi
sleep 5
done