pmaports/device/unmaintained/device-samsung-janice-downstream/initfs-hook.sh
Jonas Heinrich 6e018c204d
samsung-janice: Readd unmaintained downstream port (MR 2907)
[ci:skip-build] already built successfully in CI
2022-02-07 21:36:47 -08:00

11 lines
371 B
Bash

#!/bin/sh
# set usb properties
echo 0 > /sys/class/android_usb/android0/enable
echo samsung > /sys/class/android_usb/android0/iManufacturer
echo janice > /sys/class/android_usb/android0/iProduct
echo 1 > /sys/class/android_usb/android0/enable
# start the usb enumeration process from userspace
echo 1 > /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device