diff --git a/dbus-send-test.txt b/dbus-send-test.txt index e57a312..cc8c35c 100644 --- a/dbus-send-test.txt +++ b/dbus-send-test.txt @@ -2,6 +2,7 @@ dbus-send --system --type=method_call --print-reply --dest=com.meego.usb_moded / dbus-send --system --type=method_call --print-reply --dest=com.meego.usb_moded /com/meego/usb_moded com.meego.usb_moded.set_mode string:'ovi_suite' dbus-send --system --type=method_call --print-reply --dest=com.meego.usb_moded /com/meego/usb_moded com.meego.usb_moded.set_config string:'ovi_suite' dbus-send --system --type=method_call --print-reply --dest=com.meego.usb_moded /com/meego/usb_moded com.meego.usb_moded.set_mode string:'mass_storage' +dbus-send --system --type=method_call --print-reply --dest=com.meego.usb_moded /com/meego/usb_moded com.meego.usb_moded.net_config string:'ip' string:'192.168.2.15' security extra: aegis-exec -a usb-moded::USBControl diff --git a/debian/changelog b/debian/changelog index 0885507..9e42b19 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ usb-moded (0.54) unstable; urgency=low * Instead of spawning shells with system() use libkmod * Make config file optional as defaults work for most + * Add dbus method to set network configuration -- Philippe De Swert Tue. 13 Nov 2012 18:56:23 +0300 diff --git a/docs/usb_moded-doc.txt b/docs/usb_moded-doc.txt index 5037a52..80a6db3 100644 --- a/docs/usb_moded-doc.txt +++ b/docs/usb_moded-doc.txt @@ -103,6 +103,13 @@ By default usb0 will be used, so no need to fill it in if not needed. The gatewa and will not be set if there is no value filled in. If the ip is set to dhcp, usb_moded will try to use dhcp to configure the network (requires dhclient atm) +The network configuration can also be set with dbus method calls via the net_config method. +This requires two strings as arguments. Supported are: ip, interface and gateway + +for exmaple: + +dbus-send --system --type=method_call --print-reply --dest=com.meego.usb_moded /com/meego/usb_moded com.meego.usb_moded.net_config string:'ip' string:'192.168.2.15' + Functional overview --------------------