Want to run a custom program before the UI starts

l3routing

New Member
Credits
15
Hi,
I'm running Raspbian 10 (buster) on Raspberry Pi B+.
I want to break the bootup sequence (anytime before control is handed off to the user) to run a custom program.

In the custom program (Calculator), I want to ask for an input (like add two numbers), if it passes, then allow the user to continue using the box.
I can add something using systemd and create a "After" directive like below.
However, what should I add to the "After" and what would I need to add to some other "Unit" to create the correct dependency.


[Unit]
Description=Calculator
After=?
 


$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top