Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalwareutils.git;a=commitdiff;h=d3e5ecb5c394684083bccf7211670b93689cbace

commit d3e5ecb5c394684083bccf7211670b93689cbace
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Fri Oct 8 14:51:20 2010 +0200

fwnetconfig: don't use ifconfig when no options

diff --git a/libfwnetconfig/libfwnetconfig.c b/libfwnetconfig/libfwnetconfig.c
index c60f84a..837b9fd 100644
--- a/libfwnetconfig/libfwnetconfig.c
+++ b/libfwnetconfig/libfwnetconfig.c
@@ -488,7 +488,7 @@ int fwnet_ifup(fwnet_interface_t *iface, fwnet_profile_t 
*profile)
ret += fwutil_system(ptr);
FWUTIL_FREE(ptr);
}
-       else
+       else if(g_list_length(iface->options)>1)
{
ptr = g_strdup_printf("ifconfig %s 0.0.0.0", iface->name);
ret += fwutil_system(ptr);
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to