Skip to content

Commit

Permalink
[usb-moded] Configuration files for connman tethering
Browse files Browse the repository at this point in the history
Contributes to JB#15005
  • Loading branch information
monich committed Apr 16, 2015
1 parent 5722b4f commit 059905e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/dyn-modes/connection_sharing-android-connman.ini
@@ -0,0 +1,13 @@
[mode]
name = connection_sharing
module = none

[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
softconnect_disconnect = 0
idProduct = 0A02
connman_tethering = /net/connman/technology/gadget
17 changes: 17 additions & 0 deletions rpm/usb-moded.spec
Expand Up @@ -235,6 +235,19 @@ system bus.
This package contains configuration to enable sharing the cellular data
connection over the USB with the android gadget driver.

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

%description connection-sharing-android-connman-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 connman gadget driver.

%package mass-storage-android-config
Summary: USB mode controller - mass-storage config with android gadget
Group: Config
Expand Down Expand Up @@ -420,6 +433,10 @@ systemctl daemon-reload || :
%{_sysconfdir}/usb-moded/dyn-modes/connection_sharing.ini
%{_sysconfdir}/usb-moded/run/udhcpd-connection-sharing.ini

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

%files mass-storage-android-config
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/mass_storage_android.ini
Expand Down

0 comments on commit 059905e

Please sign in to comment.