instead of using sprintf you should use
#include <glib.h>
char* path = g_strconcat("/sys/class/net/", iface, "/device/rf_kill", NULL);
[...]
g_free(path);
----- Messaggio originale -----
Da: dragoran <drago01 gmail com>
A: yelo_3 <yelo_3 yahoo it>
Cc: network manager <networkmanager-list gnome org>; hadess hadess net; Dan Williams <dcbw redhat com>
Inviato: Domenica 24 giugno 2007, 22:15:30
Oggetto: Re: ipw srcipts for hal
here is a C implementation of the ipwWirelessCtl
the udi is hardcoded and I only implemented get for now (will add the rest tomorrow). It also uses all values
from the README.
yelo_3 you have a typo in your patch (you used getrfkill instead of set ;) )
Bastien: the UDI that will get passed to the script would be that of the killswitch corret?
programm is attached... any comments?