4 Copyright (C) 2006-2009 Jonathan Zarate
10 void asp_upnpinfo(int argc
, char **argv
)
12 if (nvram_get_int("upnp_enable")) {
13 f_write_string("/etc/upnp/info", "", 0, 0);
14 if (killall("miniupnpd", SIGUSR2
) == 0) {
15 f_wait_notexists("/etc/upnp/info", 5);
18 web_puts("\nmupnp_data = '");
19 web_putfile("/etc/upnp/data.info", WOF_JAVASCRIPT
);
24 void wo_upnp(char *url
)
30 if (nvram_get_int("upnp_enable")) {
31 if (((proto
= webcgi_get("remove_proto")) != NULL
) && (*proto
) &&
32 ((eport
= webcgi_get("remove_eport")) != NULL
) && (*eport
)) {
33 sprintf(s
, "%3s %6s\n", proto
, eport
);
34 f_write_string("/etc/upnp/delete", s
, 0, 0);
35 if (killall("miniupnpd", SIGUSR2
) == 0) {
36 f_wait_notexists("/etc/upnp/delete", 5);