packages needed by darcs
[archlinuxppc.git] / networkmanager / disable_set_hostname.patch
1 diff -Nur NetworkManager-0.8.2.orig/src/nm-policy.c NetworkManager-0.8.2/src/nm-policy.c
2 --- NetworkManager-0.8.2.orig/src/nm-policy.c   2010-11-03 12:58:42.000000000 -0700
3 +++ NetworkManager-0.8.2/src/nm-policy.c        2010-11-23 06:22:32.436707081 -0800
4 @@ -342,6 +342,7 @@
5                 return;
6         }
7  
8 +#if 0
9         /* Try automatically determined hostname from the best device's IP config */
10         if (!best4)
11                 best4 = get_best_ip4_device (policy->manager, &best_req4);
12 @@ -396,6 +397,7 @@
13                 }
14         }
15  
16 +#endif
17         /* If no automatically-configured hostname, try using the hostname from
18          * when NM started up.
19          */