dbus-send --system --dest=net.connman --print-reply / net.connman.Manager.GetServices
/var/lib/connman/
./set-nameservers wifi_5050a0b0c0d0_1234567b8912_managed_psk 8.8.8.8 8.8.4.4
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> int main() { setuid( 0 ); system( "/usr/sbin/vpnc && /sbin/ip route add xxx.xxx.x.0/24 dev tun0); return 0; }
gcc vpnc-helper.c -o vpnc-helper devel-su chown root:root vpnc-helper chmod 4755 vpnc-helper