rc.local 548 B

1234567891011121314151617181920
  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # Disable checksum offloading on eth1 because it does not currently work with
  13. # libvirt and isc-dhcp-server running on venus, see [1]
  14. # [1] - https://bugs.mageia.org/show_bug.cgi?id=1243
  15. ethtool --offload eth1 tx off >/dev/null 2>&1
  16. ethtool --offload eth1 rx off >/dev/null 2>&1
  17. exit 0