diff --git a/config/dyn-modes/vfat_android.ini b/config/dyn-modes/vfat_android.ini new file mode 100644 index 0000000..0c78596 --- /dev/null +++ b/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 diff --git a/config/run/vfat.ini b/config/run/vfat.ini new file mode 100644 index 0000000..d22e16f --- /dev/null +++ b/config/run/vfat.ini @@ -0,0 +1,4 @@ +[info] +name = tojblockd@/home/nemo.service +mode = mass_storage +systemd = 1 diff --git a/rpm/usb-moded.spec b/rpm/usb-moded.spec index e40814d..bd2058e 100644 --- a/rpm/usb-moded.spec +++ b/rpm/usb-moded.spec @@ -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