Running shell file at the time of booting using service of init

There was a post before about adding a shell service to rc. Can you see if it can solve your problem?