I am trying to run my application automatically, so I have placed a .sh that have commands to insert some modules and the path to application too in init.d folder. Then I have created a symbolic link to it and placed that in the rc3.d folder.

While I am rebooting my processor,all other commands are running except that application. How can I achieve this?

My .sh file is:

mkdir -p /dev/mfi-ffs/
#modprobe g_ffs idVendor=0x15A2 idProduct=0x1234 functions=fsl iSerialNumber=123456789 iManufacturer="NXP" iProduct="NXP Accessory"
#mount -t functionfs fsl /dev/mfi-ffs/
#cd /usr/bin/
  • Which Ubuntu version? Newer versions use systemd; you'd put a Foo.service file in /etc/systemd/system.
    – MSalters
    Sep 5, 2018 at 10:44

1 Answer 1


A leading # indicates a comment, so your script is all comments except for the mkdir. The script likely runs, but test_suite won't.

  • i placed it to indicate it as command Sep 5, 2018 at 11:14
  • That's rather unfortunate, given that it means the exact opposite.
    – MSalters
    Sep 5, 2018 at 11:15
  • solution please Sep 5, 2018 at 11:17
  • Well, remove the # from all commands; it only needs to be on the first line (as part of #!
    – MSalters
    Sep 5, 2018 at 11:20
  • I removed except for the first line but still its not working Sep 5, 2018 at 11:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.