Skip to content
Permalink
Browse files
Merge pull request #21 from iamer/mass-storage-emulation
[vfat_android] and new subpackage and configurations for tojblockd vfat
  • Loading branch information
philippedeswert committed Nov 30, 2014
2 parents 81d0fe2 + 3cadf20 commit 82ecf57b000e247af951a1d0ea9752814b24f70c
Showing with 36 additions and 0 deletions.
  1. +13 −0 config/dyn-modes/vfat_android.ini
  2. +4 −0 config/run/vfat.ini
  3. +19 −0 rpm/usb-moded.spec
@@ -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
@@ -0,0 +1,4 @@
[info]
name = tojblockd@/home/nemo.service
mode = mass_storage
systemd = 1
@@ -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
@@ -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

0 comments on commit 82ecf57

Please sign in to comment.