mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-10-29 07:18:51 +01:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
17
Documentation/firmware_class/hotplug-script
Normal file
17
Documentation/firmware_class/hotplug-script
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Simple hotplug script sample:
|
||||
#
|
||||
# Both $DEVPATH and $FIRMWARE are already provided in the environment.
|
||||
|
||||
HOTPLUG_FW_DIR=/usr/lib/hotplug/firmware/
|
||||
|
||||
if [ "$SUBSYSTEM" == "firmware" -a "$ACTION" == "add" ]; then
|
||||
if [ -f $HOTPLUG_FW_DIR/$FIRMWARE ]; then
|
||||
echo 1 > /sys/$DEVPATH/loading
|
||||
cat $HOTPLUG_FW_DIR/$FIRMWARE > /sys/$DEVPATH/data
|
||||
echo 0 > /sys/$DEVPATH/loading
|
||||
else
|
||||
echo -1 > /sys/$DEVPATH/loading
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue