Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run script in startup #45

Closed
harsha-0110 opened this issue May 17, 2024 · 1 comment
Closed

Run script in startup #45

harsha-0110 opened this issue May 17, 2024 · 1 comment

Comments

@harsha-0110
Copy link

Is there a way to run shell scripts during the router boot up?

@itsyourap
Copy link
Member

Yes there is.

  • Keep you script in /flash2/pfrm2.0/etc/customInit
  • Remember to keep the file in LF
  • chmod +x /flash2/pfrm2.0/etc/customInit
  • Restart your router to test

Don't Use Such Scripts that Might Take long to run! If it is a long running script, use nohup otherwise your router may never startup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants