Run script from init.rc on Hikey960 platform to assign static IP



I want to assign static ip for usb to ethernet interface, so tried adding the below lines in init.rc file, but it is not working:

additional initialization

service init.hikey /system/bin/
user root

Can you please suggest, what is wrong in the above commands or is there any other method for assigning static IP.



Oh, I see you’re already using service here, as opposed to Have you made sure is executable?