patches for openrc

2011-12-11 Thread Mu Qiao
-- Best wishes, Mu Qiao GnuPG fingerprint: 92B1 B0C4 8D14 F8C4 EFA5  3ACC 30B3 0DE4 17B1 57E9 From c5f080923f0c52084a929b4125e8fbe19f6e7279 Mon Sep 17 00:00:00 2001 From: Mu Qiao Date: Tue, 6 Dec 2011 14:55:03 +0800 Subject: [PATCH 1/2] ifnet: support reading openrc style IP configuration like

How to add dbus path for connection object?

2011-03-09 Thread Mu Qiao
fnet plug-in. I tried to do what ifcfg-rh did but still get the same error. What's the correct way to provide this property in the plug-in? Thanks. -- Best wishes, Mu Qiao GnuPG fingerprint: 92B1 B0C4 8D14 F8C4 EFA5  3ACC 30B3 0DE4 17B1 57E9 ___

NetworkManager-0.8.2 couldn't start system-wide shared ad-hoc connection automatically

2011-01-26 Thread Mu Qiao
t; 9 (reason 9) NetworkManager[2630]: Activation (wlan0) failed for access point (blah) NetworkManager[2630]: Marking connection 'Wireless connection 1' invalid. NetworkManager[2630]: Activation (wlan0) failed. But when I restart NetworkManager, the connection could be started

Re: Should we fallback to localhost.localdomain when failed to update /etc/hosts?

2010-11-30 Thread Mu Qiao
Here's the patch. Could anyone please tell me if this will be fixed upstream? On Thu, Nov 18, 2010 at 8:59 PM, Mu Qiao wrote: > Hi, > > I see a user has an read-only /etc directory. When he uses NM and > obtains address via DHCP, the hostname will finally be changed to > l

Should we fallback to localhost.localdomain when failed to update /etc/hosts?

2010-11-18 Thread Mu Qiao
/hosts. But according to the case above, I think this is not what we want. -- Cheers, Mu Qiao GnuPG fingerprint: 92B1 B0C4 8D14 F8C4 EFA5 3ACC 30B3 0DE4 17B1 57E9 signature.asc Description: OpenPGP digital signature ___ networkmanager-list mailing list

How to conditionally compile plug-in source file to only support dhcpcd or dhclient?

2010-06-04 Thread Mu Qiao
to enable conditional compilation? for example: #ifdef DHCPCD_PATH //handling dhcpcd configuration file #else //handling dhclient configuration file #endif If this could be achieved, what should follow "#ifdef"? Should I include any header file? -- Cheers, Mu Qiao GnuPG fingerprint: 92B1 B0C4

Re: Connection update made by plugin won't change system connection

2010-05-03 Thread Mu Qiao
On Sun, May 2, 2010 at 6:21 PM, Mu Qiao wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Dan, > I've implemented monitoring using GFileMonitor. Configuration files > changes could be noticed by the plug-in and then corresponding actions > will be take

Re: How to add pppoe connection in NM plug-in

2010-05-02 Thread Mu Qiao
On Mon, May 3, 2010 at 5:32 AM, Dan Williams wrote: > On Fri, 2010-04-30 at 21:04 +0800, Mu Qiao wrote: >> On Tue, Apr 27, 2010 at 1:29 PM, Mu Qiao wrote: >> > On Tue, Apr 27, 2010 at 8:15 AM, Mu Qiao wrote: >> >> On Tue, Apr 27, 2010 at 7:18 AM, Dan Williams wr

Connection update made by plugin won't change system connection

2010-05-02 Thread Mu Qiao
NM_EXPORTED_CONNECTION (old)); Did I miss anything? - -- Best wishes, Mu Qiao GnuPG fingerprint: 92B1 B0C4 8D14 F8C4 EFA5 3ACC 30B3 0DE4 17B1 57E9 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Use GnuPG with Firefox : http://get

Re: How to add pppoe connection in NM plug-in

2010-04-30 Thread Mu Qiao
On Tue, Apr 27, 2010 at 1:29 PM, Mu Qiao wrote: > On Tue, Apr 27, 2010 at 8:15 AM, Mu Qiao wrote: >> On Tue, Apr 27, 2010 at 7:18 AM, Dan Williams wrote: >>> On Mon, 2010-04-26 at 21:04 +0800, Mu Qiao wrote: >>>> Hi dear Dan and all, >>>> I've

Re: How to add pppoe connection in NM plug-in

2010-04-26 Thread Mu Qiao
On Tue, Apr 27, 2010 at 8:15 AM, Mu Qiao wrote: > On Tue, Apr 27, 2010 at 7:18 AM, Dan Williams wrote: >> On Mon, 2010-04-26 at 21:04 +0800, Mu Qiao wrote: >>> Hi dear Dan and all, >>> I've tried to find how to add pppoe connection in NM plug-in. But I >>

Re: How to add pppoe connection in NM plug-in

2010-04-26 Thread Mu Qiao
On Tue, Apr 27, 2010 at 7:18 AM, Dan Williams wrote: > On Mon, 2010-04-26 at 21:04 +0800, Mu Qiao wrote: >> Hi dear Dan and all, >> I've tried to find how to add pppoe connection in NM plug-in. But I >> didn't find any example in existing plugin source code. Is ther

How to add pppoe connection in NM plug-in

2010-04-26 Thread Mu Qiao
if (!value) { value=""; } g_object_set(s_pppoe, NM_SETTING_PPPOE_PASSWORD, value, NULL); nm_connection_add_setting(connection, NM_SETTING(s_pppoe)); Am I doing in the right way? Is there any other thing I should take care of? Could pleas

Patch: Avoid duplicated DNS writing to resolv.conf

2010-04-25 Thread Mu Qiao
. The patch uses a temporary hash table to avoid this. -- Best wishes, Mu Qiao omit_duplicated_dns.patch Description: Binary data ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: nm-inotify-helper doesn't work in Lenovo T400

2010-04-22 Thread Mu Qiao
On Fri, Apr 23, 2010 at 8:00 AM, Dan Williams wrote: > On Thu, 2010-04-22 at 11:23 +0800, Mu Qiao wrote: >> Hi all, >> I'm using nm-inotify-helper to monitor hostname file in my plugin. The >> code is nearly the same as ifupdown. >> However, I find nothing chang

Re: Is udev necessary for NM plug-in?

2010-04-22 Thread Mu Qiao
d in > /etc/sysconfig/network-scripts/ifcfg-eth*, but NM still works > correctly. > -- > Best wishes, > Mu Qiao > -- Best wishes, Mu Qiao ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list

nm-inotify-helper doesn't work in Lenovo T400

2010-04-21 Thread Mu Qiao
my laptop. -- Best wishes, Mu Qiao ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list

Is udev necessary for NM plug-in?

2010-04-21 Thread Mu Qiao
ectly setup. Do I need to set mac address for each connection to let them work correctly? Or there are other things that I didn't handle in the right way? I've tried to remove mac address saved in /etc/sysconfig/network-scripts/ifcfg-eth*, but NM still works

Re: If wireless security information is not provided to the plug-in, will the default plug-in handle it?

2010-04-08 Thread Mu Qiao
On Fri, Apr 9, 2010 at 8:00 AM, Dan Williams wrote: > On Thu, 2010-04-08 at 17:15 +0800, Mu Qiao wrote: >> On Thu, Apr 8, 2010 at 4:49 PM, Simon Geard wrote: >> > On Thu, 2010-04-08 at 16:38 +0800, Mu Qiao wrote: >> >> One more thing. I find that NetworkManag

Re: If wireless security information is not provided to the plug-in, will the default plug-in handle it?

2010-04-08 Thread Mu Qiao
On Thu, Apr 8, 2010 at 4:49 PM, Simon Geard wrote: > On Thu, 2010-04-08 at 16:38 +0800, Mu Qiao wrote: >> One more thing. I find that NetworkManager uses gnome keyring to store >> keys. But I didn't find any code doing that. Could you please give me >> some directions?

Re: If wireless security information is not provided to the plug-in, will the default plug-in handle it?

2010-04-08 Thread Mu Qiao
One more thing. I find that NetworkManager uses gnome keyring to store keys. But I didn't find any code doing that. Could you please give me some directions? Thanks. -- Best wishes, Mu Qiao ___ networkmanager-list mailing list networkmanager

If wireless security information is not provided to the plug-in, will the default plug-in handle it?

2010-04-07 Thread Mu Qiao
? Or I have to implement all of these in my plug-in if I want to do that? -- Best wishes, Mu Qiao ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list

Compatibilities of NetworkManager plugin

2010-03-29 Thread Mu Qiao
Hi. Dan I've learned that IPv6 is not provided until NM0.8. However, the stable version in Gentoo portage is NM0.7. Most of the Gentoo users are still using NM0.7. If I want to support IPv6 in my plugin. Will it be compatible with NM0.7? Or I have to develop two version? -- Best wishe

Re: How to add a plugin for NM

2010-03-23 Thread Mu Qiao
:19 AM, Dan Williams wrote: > On Tue, 2010-03-23 at 20:55 +0800, Mu Qiao wrote: > > Hello, > > > > I need to develop a plugin for NM to read local configuration files > > just like RH and Ubuntu do. (I'm not sure whether the plugin is > > ifcfg-rh and ifupdow

How to add a plugin for NM

2010-03-23 Thread Mu Qiao
Hello, I need to develop a plugin for NM to read local configuration files just like RH and Ubuntu do. (I'm not sure whether the plugin is ifcfg-rh and ifupdown) Where should I start? Where can I find documentations for developing plugin and source code of ifcfg-rh and ifupdown? -- Best wishes