Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[usb-moded] Add configuration for cellular connection sharing
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Dec 12, 2013
1 parent 2d30b7c commit 8c6870a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
16 changes: 16 additions & 0 deletions config/dyn-modes/connection_sharing.ini
@@ -0,0 +1,16 @@
[mode]
name = connection_sharing
module = none
network = 1
network_interface = rndis0
appsync = 1

[options]
sysfs_path = /sys/class/android_usb/android0/functions
sysfs_value = rndis
sysfs_reset_value = none
softconnect_path = /sys/class/android_usb/android0/enable
softconnect = 1
softconnec_disconnect = 0
idProduct = 0A05
nat = 1
5 changes: 5 additions & 0 deletions config/run/udhcpd-connection-sharing.ini
@@ -0,0 +1,5 @@
[info]
name = udhcpd.service
mode = connection_sharing
systemd = 1
post = 1
21 changes: 20 additions & 1 deletion rpm/usb-moded.spec
Expand Up @@ -208,12 +208,26 @@ Group: Config
This package contains the diagnostics info needed to configure a
diagnotic mode

%package connection-sharing-android-config
Summary: USB mode controller - USB/cellular data connection sharing config
Group: Config

%description connection-sharing-android-config
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.

This package contains configuration to enable sharing the cellular data
connection over the USB with the android gadget driver.


%prep
%setup -q

%build
%autogen
%configure --enable-app-sync --enable-udev --enable-n900 --enable-meegodevlock --enable-debug
%configure --enable-app-sync --enable-udev --enable-n900 --enable-meegodevlock --enable-debug --enable-connman
make all doc %{?_smp_mflags}

%install
Expand Down Expand Up @@ -324,3 +338,8 @@ systemctl daemon-reload
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/diag/qa_diagnostic_mode.ini
%{_sysconfdir}/usb-moded/run/qa-diagnostic.ini

%files connection-sharing-android-config
%defattr(-,root,root,-)
%{_sysconfdir}/config/dyn-modes/connection_sharing.ini
%{_sysconfdir}/config/run/udhcpd-connection-sharing.ini

0 comments on commit 8c6870a

Please sign in to comment.