1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/modules/quirks/qualcomm/msm-dwc3-otg_switch-task.rb
2020-04-13 17:44:28 -04:00

11 lines
250 B
Ruby

class Tasks::MsmDwc3OtgSwitch < SingletonTask
def initialize()
Targets[:SwitchRoot].add_dependency(:Task, self)
add_dependency(:Mount, "/sys")
end
def run()
System.write("/sys/module/dwc3_msm/parameters/otg_switch", "1")
end
end