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

Hi,

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/init.hikey.sh
user root
oneshot

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

Thanks

Oh, I see you’re already using service here, as opposed to https://discuss.96boards.org/t/not-able-to-run-the-script-from-init-rc. Have you made sure init_hikey.sh is executable?