[Frugalware-darcs] frugalwareutils: libfwnetconfig: fwnet_writeconfig() should also write pre_up/down post_up/down entries.

Priyank priyank at frugalware.org
Wed Jun 20 17:33:48 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=frugalwareutils;a=darcs_commitdiff;h=20070620152926-5ce2c-263fb70b123bdb3fae0db33c45518c85478d1454.gz;

[libfwnetconfig: fwnet_writeconfig() should also write pre_up/down post_up/down entries.
Priyank <priyank at frugalware.org>**20070620152926] {
hunk ./libfwnetconfig/libfwnetconfig.c 703
+		}
+		for(i=0;i<g_list_length(iface->pre_ups);i++)
+		{
+			char *command = (char*)g_list_nth_data(iface->pre_ups, i);
+			if(command && strlen(command))
+				fprintf(fp, "pre_up = %s\n", command);
+		}
+		for(i=0;i<g_list_length(iface->pre_downs);i++)
+		{
+			char *command = (char*)g_list_nth_data(iface->pre_downs, i);
+			if(command && strlen(command))
+				fprintf(fp, "pre_down = %s\n", command);
+		}
+		for(i=0;i<g_list_length(iface->post_ups);i++)
+		{
+			char *command = (char*)g_list_nth_data(iface->post_ups, i);
+			if(command && strlen(command))
+				fprintf(fp, "post_up = %s\n", command);
+		}
+		for(i=0;i<g_list_length(iface->post_downs);i++)
+		{
+			char *command = (char*)g_list_nth_data(iface->post_downs, i);
+			if(command && strlen(command))
+				fprintf(fp, "post_down = %s\n", command);
}


More information about the Frugalware-darcs mailing list