disable_set_hostname.patch 591 B

1234567891011121314151617181920
  1. diff -Nur NetworkManager-0.9.0.orig/src/nm-policy.c NetworkManager-0.9.0/src/nm-policy.c
  2. --- NetworkManager-0.9.0.orig/src/nm-policy.c 2011-08-23 06:41:02.099686450 +0000
  3. +++ NetworkManager-0.9.0/src/nm-policy.c 2011-08-23 06:43:38.227791737 +0000
  4. @@ -302,6 +302,7 @@
  5. return;
  6. }
  7. +#if 0
  8. /* Try automatically determined hostname from the best device's IP config */
  9. if (!best4)
  10. best4 = get_best_ip4_device (policy->manager, &best_req4);
  11. @@ -356,6 +357,7 @@
  12. }
  13. }
  14. +#endif
  15. /* If no automatically-configured hostname, try using the hostname from
  16. * when NM started up.
  17. */