I need a solutions for creating a configuration script which should be executed only by the first boot of the machine. I want to configure new network interfaces through the script with parameters which are inputed by the user. There are various ways to do that. My guess was systemd.
I tried to write a systemd script like this:
[Unit]
Decription=Network Configuration Service
[Service]
Type=simple
ExecStart=/home/configure-network
[Install]
WantedBy=multi-user.target
The systemd service is working fine, but I can't see any outputs of my script on the terminal even if I only use the echo command. What would be the best way to execute my script on startup for the very first time of the system boot. When my system is up and I connect through ssh the script should be executed once and the user should be able to put the parameters sequentially.
My problem is only the execution of the script on boot/startup only once.