2
I have a OpenWRT System for which I've wrote a small interactive shell script which displays a menu and based on the input, displays appropriate info to stdout.
For example:
== Please Select Option ==
[1] Display IP address
[2] Display VPN Status
[3] Display something else
Please enter your choice?
When I run the script manually (menu.sh
) then it seems to work fine.
However, I need to find a way for the script to launch automatically when the OS is booted. So instead of seeing a shell propmpt, the user will see the output of the script, in this case, the menu system.
How do I go it?
Perfect! Never occured to me to try the
/etc/profile
Works perfect! Thank you very much! – Shaf – 2015-10-01T11:40:33.063