I had a script that automatically enables my wifi without using networkmanager, but I don't know how to run the script as root while the system is booting. How do I make the script run automatically during boot?
|
Place the script you want to run in the /etc/init.d directory and make the script executable.
Once that is done create a symbolic link in the run level directory you would like to use, for example if you wanted to run a program in the graphical runlevel 2, the default runlevel for Ubuntu, you would place it in the If the last script to be run is
Each backward compatible |
|||||||||||||||||
|
|
Include the command in Note: You have to put the command before the last line in /etc/rc.local that contains: "exit 0". |
|||||||||||||
|
|
Use a you can do it by adding
will do it |
|||||||||||||||||
|
|
Include your Script file to
It will put your script on boot startup. |
|||||||||
|
|
Create a text file like this in
(You should replace |
||||
|
|
|
This worked for me on Ubuntu 17.04:
My
Where Then run |
|||
|
|