-+/*
-+ * nm_system_device_add_ip6_link_address
-+ *
-+ * Add a default link-local IPv6 address to a device.
-+ *
-+ */
-+void nm_system_device_add_ip6_link_address (NMDevice *dev)
-+{
-+ char *buf;
-+ struct ether_addr hw_addr;
-+ unsigned char eui[8];
-+
-+ if (nm_device_is_802_3_ethernet (dev))
-+ nm_device_802_3_ethernet_get_address (NM_DEVICE_802_3_ETHERNET (dev), &hw_addr);
-+ else if (nm_device_is_802_11_wireless (dev))
-+ nm_device_802_11_wireless_get_address (NM_DEVICE_802_11_WIRELESS (dev), &hw_addr);
-+
-+ memcpy (eui, &(hw_addr.ether_addr_octet), sizeof (hw_addr.ether_addr_octet));
-+ memmove (eui+5, eui+3, 3);
-+ eui[3] = 0xff;
-+ eui[4] = 0xfe;
-+ eui[0] ^= 2;
-+
-+ /* Add the default link-local IPv6 address to a device */
-+ buf = g_strdup_printf ("/sbin/ip -6 addr add fe80::%x%02x:%x%02x:%x%02x:%x%02x/64 dev %s",
-+ eui[0], eui[1], eui[2], eui[3], eui[4], eui[5],
-+ eui[6], eui[7], nm_device_get_iface (dev));
-+ nm_spawn_process (buf);
-+ g_free (buf);
-+}
-+
-+/*
-+ * nm_system_device_add_route_via_device_with_iface
-+ *
-+ * Add route to the given device
-+ *
-+ */
-+void nm_system_device_add_route_via_device_with_iface (const char *iface, const char *route)
-+{
-+ char *buf;
-+
-+ g_return_if_fail (iface != NULL);
-+
-+ /* Add default gateway */
-+ buf = g_strdup_printf ("/sbin/ip route add %s dev %s", route, iface);
-+ nm_spawn_process (buf);
-+ g_free (buf);
-+}
-+
-+/*
-+ * nm_system_device_add_default_route_via_device
-+ *
-+ * Flush all routes associated with a network device
-+ *
-+ */
-+void nm_system_device_add_default_route_via_device (NMDevice *dev)
-+{
-+ g_return_if_fail (dev != NULL);
-+
-+ /* Not really applicable for test devices */
-+ if (nm_device_is_test_device (dev))
-+ return;
-+
-+ nm_system_device_add_default_route_via_device_with_iface (nm_device_get_iface (dev));
-+}
-+
-+/*
-+ * * nm_system_device_add_default_route_via_device_with_iface
-+ * *
-+ * * Add default route to the given device
-+ * *
-+ * */
-+void nm_system_device_add_default_route_via_device_with_iface (const char *iface)
-+{
-+ char *buf;
-+
-+ g_return_if_fail (iface != NULL);
-+
-+ /* Add default gateway */
-+ buf = g_strdup_printf ("/sbin/ip route add default dev %s", iface);
-+ nm_spawn_process (buf);
-+ g_free (buf);
-+}
-+
-+/*
-+ * nm_system_flush_loopback_routes
-+ *
-+ * Flush all routes associated with the loopback device, because it
-+ * sometimes gets the first route for ZeroConf/Link-Local traffic.
-+ *
-+ */
-+void nm_system_flush_loopback_routes (void)
-+{
-+ /* Remove routing table entries for lo */
-+ nm_spawn_process ("/sbin/ip route flush dev lo");
-+}
-+
-+/*
-+ * nm_system_flush_arp_cache
-+ *
-+ * Flush all entries in the arp cache.
-+ *
-+ */
-+void nm_system_flush_arp_cache (void)
-+{
-+ nm_spawn_process ("/sbin/ip neigh flush all");
-+}
-+
-+void nm_system_deactivate_all_dialup (GSList *list)
-+{
-+}
-+
-+gboolean nm_system_deactivate_dialup (GSList *list, const char *dialup)
-+{
-+ return FALSE;
-+}
-+
-+gboolean nm_system_activate_dialup (GSList *list, const char *dialup)
-+{
-+ return FALSE;
-+}
-+
-+/*
-+ * nm_system_get_dialup_config
-+ *
-+ * Enumerate dial up options on this system, allocate NMDialUpConfig's,
-+ * fill them out, and return.
-+ *
-+ */
-+GSList * nm_system_get_dialup_config (void)
-+{
-+ return NULL;
-+}
-+
-+void nm_system_device_free_system_config (NMDevice *dev, void *system_config_data)
-+{
-+}
-+
-+NMIP4Config *nm_system_device_new_ip4_system_config (NMDevice *dev)
-+{
-+ return NULL;
-+}
-+
-+gboolean nm_system_device_get_use_dhcp (NMDevice *dev)
-+{
-+ return TRUE;
-+}
-+
-+/*
-+ * nm_system_device_get_disabled
-+ *
-+ * Return whether the distro-specific system config tells us to use
-+ * dhcp for this device.
-+ *
-+ */
-+gboolean nm_system_device_get_disabled (NMDevice *dev)
-+{
-+ return FALSE;
-+}
-+
-+/*
-+ * nm_system_activate_nis
-+ *
-+ * set up the nis domain and write a yp.conf
-+ *
-+ */
-+void nm_system_activate_nis (NMIP4Config *config)
-+{
-+}
-+
-+/*
-+ * nm_system_shutdown_nis
-+ *
-+ * shutdown ypbind
-+ *
-+ */
-+void nm_system_shutdown_nis (void)
-+{
-+}
-+
-+/*
-+ * nm_system_set_hostname
-+ *
-+ * set the hostname
-+ *
-+ */
-+void nm_system_set_hostname (NMIP4Config *config)
-+{
-+}
-+
-+/*
-+ * nm_system_should_modify_resolv_conf
-+ *
-+ * Can NM update resolv.conf, or is it locked down?
-+ */
-+gboolean nm_system_should_modify_resolv_conf (void)
-+{
-+ return TRUE;
-+}
+diff -urN NetworkManager-0.8.996/configure.ac NetworkManager-0.8.996.new//configure.ac
+--- NetworkManager-0.8.996/configure.ac 2011-03-10 07:44:53.000000000 +0000
++++ NetworkManager-0.8.996.new//configure.ac 2011-03-11 21:56:12.369999140 +0000
+@@ -95,7 +95,7 @@
+ dnl
+ AC_C_BIGENDIAN
+
+-AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, suse, gentoo, debian, arch, slackware, paldo, mandriva, pardus, linexa or exherbo]))
++AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, suse, gentoo, debian, arch, slackware, paldo, mandriva, pardus, linexa, exherbo or pld]))
+ if test "z$with_distro" = "z"; then
+ AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
+ AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
+@@ -109,6 +109,7 @@
+ AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
+ AC_CHECK_FILE(/etc/linexa-release,with_distro="linexa")
+ AC_CHECK_FILE(/etc/exherbo-release,with_distro="exherbo")
++ AC_CHECK_FILE(/etc/pld-release,with_distro="pld")
+ if test "z$with_distro" = "z"; then
+ with_distro=`lsb_release -is`
+ fi
+@@ -120,7 +121,7 @@
+ exit 1
+ else
+ case $with_distro in
+- redhat|suse|gentoo|debian|slackware|arch|paldo|frugalware|mandriva|pardus|linexa|exherbo) ;;
++ redhat|suse|gentoo|debian|slackware|arch|paldo|frugalware|mandriva|pardus|linexa|exherbo|pld) ;;
+ *)
+ echo "Your distribution (${with_distro}) is not yet supported! (patches welcome)"
+ exit 1
+@@ -188,6 +189,11 @@
+ AC_DEFINE(TARGET_EXHERBO, 1, [Define if you have Exherbo])
+ fi
+
++AM_CONDITIONAL(TARGET_PLD, test x"$with_distro" = xpld)
++if test x"$with_distro" = xpld; then
++ AC_DEFINE(TARGET_PLD, 1, [Define if you have PLD])
++fi
++
+ dnl
+ dnl Distribution version string
+ dnl
+@@ -617,6 +623,8 @@
+ initscript/paldo/NetworkManager
+ initscript/Mandriva/Makefile
+ initscript/Mandriva/networkmanager
++initscript/PLD/Makefile
++initscript/PLD/NetworkManager
+ initscript/linexa/Makefile
+ initscript/linexa/networkmanager
+ introspection/Makefile
+diff -urN NetworkManager-0.8.996/src/backends/Makefile.am NetworkManager-0.8.996.new//src/backends/Makefile.am
+--- NetworkManager-0.8.996/src/backends/Makefile.am 2011-01-02 23:18:57.000000000 +0000
++++ NetworkManager-0.8.996.new//src/backends/Makefile.am 2011-03-11 21:57:30.163333077 +0000
+@@ -61,6 +61,10 @@
+ libnmbackend_la_SOURCES += NetworkManagerExherbo.c
+ endif
+
++if TARGET_PLD
++libnmbackend_la_SOURCES += NetworkManagerPLD.c
++endif