no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | en:general_information:autologin_systemd [2018/09/14 12:01] – created liedmann | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Autologin with systemd ===== | ||
+ | |||
+ | <WRAP round info> | ||
+ | Tested with: | ||
+ | * TQMa6x BSP REV.0109 | ||
+ | * TQMa7x BSP REV.0101 | ||
+ | </ | ||
+ | |||
+ | ==== Copy serial getty service ==== | ||
+ | |||
+ | Copy **/ | ||
+ | |||
+ | < | ||
+ | cp / | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Rename systemd service ==== | ||
+ | |||
+ | |||
+ | Navigate to **/ | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | </ | ||
+ | |||
+ | Rename **serial-getty@.service** | ||
+ | |||
+ | < | ||
+ | mv serial-getty@.service serial-getty@< | ||
+ | </ | ||
+ | ++++ example | | ||
+ | < | ||
+ | mv serial-getty@.service serial-getty@ttymxc1.service | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | ==== Edit systemd service ==== | ||
+ | |||
+ | |||
+ | Edit **serial-getty@ttymxc1.service** with e.g. nano editor | ||
+ | |||
+ | < | ||
+ | nano serial-getty@ttymxc1.service | ||
+ | </ | ||
+ | |||
+ | Modify the line that begins with **ExecStart** as follows | ||
+ | |||
+ | < | ||
+ | ExecStart=-/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ++++ example | | ||
+ | < | ||
+ | ExecStart=-/ | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | ==== Enable the systemd service ==== | ||
+ | |||
+ | < | ||
+ | systemctl enable serial-getty@< | ||
+ | </ | ||
+ | |||
+ | ++++ example | | ||
+ | < | ||
+ | systemctl enable serial-getty@ttymxc1.service | ||
+ | </ | ||
+ | ++++ | ||