andre_teprom
Posts: 1
Joined: Sat Oct 05, 2013 3:57 pm

How to add a script "before" system boot ?

Sat Aug 04, 2018 3:23 pm

I'm using the Linux headless (graphical interface deactivated) at RPI3, and I wanted to run a script right before the boot process.
If I add something on the contab ( e.g @reboot option ), this is instatiated at the end of the booting process.

Does someone know how to do that ?

User avatar
thagrol
Posts: 939
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: How to add a script "before" system boot ?

Sun Aug 12, 2018 2:35 pm

andre_teprom wrote:
Sat Aug 04, 2018 3:23 pm
I wanted to run a script right before the boot process.
Probably can't be done. Although that depends on what you mean by "right before the boot process".

The best you're likely to get is a systemd service configured to run as soon as everything your script depends on is available. Good luck working that out.
Note to self: don't feed the trolls
If you believe "L'enfer, c'est les autres" (Hell is other people) have you considered that it may be of your own making?

Return to “Raspbian”