ubuntu 18.04 is set to boot from the start command

Reference from: https: //www.cnblogs.com/qingshangucheng/p/10183583.html

Principle: systemd will automatically read / etc configuration files in / systemd / system (as I understand is to execute all executable files in the folder)

    And there is a rc.local.service file in / lib / systemd / system, edit it (need to increase the [Install] section to boot from Kai), and make it a soft link, into the / etc / systemd / system down , which instruction execution /etc/rc.local file.

    So, edit /etc/rc.local file, put the commands you want to boot, you can.

Test it, rc.local file so that in turn generated automatically generated, so this approach should be feasible.

Guess you like

Origin www.cnblogs.com/luyi07/p/11183607.html