openvmtools-02-network_script.patch 956 B

123456789101112131415161718192021
  1. scripts/linux/network: exit normally if no network control script
  2. When using suspend/resume from the hypervisor, openvmtools checks for the
  3. networking script, and exists with an error if not found, making the hypervisor
  4. raise a warning message. This workaround silences that error message.
  5. Signed-off-by: Karoly Kasza <kaszak@gmail.com>
  6. --- open-vm-tools-9.4.6-1770165.orig/scripts/linux/network 2014-07-02 00:21:14.000000000 +0200
  7. +++ open-vm-tools-9.4.6-1770165/scripts/linux/network 2014-08-07 16:34:21.963514273 +0200
  8. @@ -88,7 +88,9 @@
  9. run_network_script()
  10. {
  11. script=`find_networking_script`
  12. - [ "$script" != "error" ] || Panic "Cannot find system networking script."
  13. +# [ "$script" != "error" ] || Panic "Cannot find system networking script."
  14. +# Modified for buildroot
  15. + [ "$script" != "error" ] || exit 0
  16. # Using SysV "service" if it exists, otherwise fall back to run the script directly
  17. service=`which service 2>/dev/null`