Skip to content

Commit

Permalink
z2_plus: rootdir: Decommonize some chowns and chmods for led files [2/2]
Browse files Browse the repository at this point in the history
Change-Id: I9d43357b5d94c874e4a1a6dfdb3ab2d6bf98ec77
Signed-off-by: Davide Garberi <[email protected]>
  • Loading branch information
DD3Boh committed Jan 21, 2018
1 parent cb247c6 commit 240d5b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rootdir/etc/init.zuk.usb.rc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
on init
# USB
write /sys/class/android_usb/android0/iProduct Z2-PLUS
write /sys/class/android_usb/android0/f_mass_storage/inquiry_string "ShenQi Z2-PLUS 0100"

on boot
# Leds
chown system system /sys/class/leds/led:rgb_blue/rgbbreath
chmod 0660 /sys/class/leds/led:rgb_blue/rgbbreath
chown system system /sys/class/leds/led:rgb_red/rgbbreath
chmod 0660 /sys/class/leds/led:rgb_red/rgbbreath
chown system system /sys/class/leds/led:rgb_green/rgbbreath
chmod 0660 /sys/class/leds/led:rgb_green/rgbbreath

0 comments on commit 240d5b7

Please sign in to comment.