Skip to content

Commit

Permalink
Merge pull request #21 from iamer/mass-storage-emulation
Browse files Browse the repository at this point in the history
[vfat_android] and new subpackage and configurations for tojblockd vfat
  • Loading branch information
philippedeswert committed Nov 30, 2014
2 parents 81d0fe2 + 3cadf20 commit 82ecf57
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/dyn-modes/vfat_android.ini
@@ -0,0 +1,13 @@
[mode]
name = mass_storage
module = none
appsync = 1

[options]
sysfs_path = /sys/class/android_usb/android0/functions
sysfs_value = mass_storage
sysfs_reset_value = none
softconnect_path = /sys/class/android_usb/android0/enable
softconnect = 1
softconnec_disconnect = 0
idProduct = 55AA
4 changes: 4 additions & 0 deletions config/run/vfat.ini
@@ -0,0 +1,4 @@
[info]
name = tojblockd@/home/nemo.service
mode = mass_storage
systemd = 1
19 changes: 19 additions & 0 deletions rpm/usb-moded.spec
Expand Up @@ -248,6 +248,20 @@ system bus.
This package contains configuration to enable sharing over mass-storage
with the android gadget driver.

%package vfat-android-config
Summary: USB mode controller - vfat config with tojblockd
Group: Config
Requires: tojblockd

%description vfat-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 over vfat
emulation with tojblockd and nbd.

%package systemd-rescue-mode
Summary: USB mode controller - systemd rescue mode support
Group: Config
Expand Down Expand Up @@ -409,6 +423,11 @@ systemctl daemon-reload || :
%{_sysconfdir}/usb-moded/dyn-modes/mass_storage_android.ini
%{_sysconfdir}/usb-moded/mass-storage-jolla.ini

%files vfat-android-config
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/vfat_android.ini
%{_sysconfdir}/usb-moded/run/vfat.ini

%files host-mode-jolla
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/host_mode_jolla.ini
Expand Down

0 comments on commit 82ecf57

Please sign in to comment.