I am running debian Jessie. During startup I want to read some user input. This is done by a custom script in /etc/init.d/ and symlinks in the runlevel dirs. Now I want
kdm, which is started by another init script, to be started only after my custom script is finished.
I cloud achieve this by adding something like
while test -e /tmp/kdm-boot-lock do echo "waiting for lock-file to be deleted by custom-script" sleep 1 done
but I would prefer a solution without changing foreign files (which might get changed by updates).
So the question is: How can I prevent that a distinct (unchanged) init script (
kdm) is started before my custom script finished?