I need to do something apparently quite simple: run a script on a Debian 8.2 machine during boot (or during shutdown, both of them are fine).
The script just moves and renames some files, so the only thing it needs is that the root filesystem is mounted. However, it must run before networking is started.
I tried putting the script in
/etc/init.d, and symlinking it to
/etc/rc3.d/S12-a-scriptname.sh so that it runs just before networking. However... it just doesn't run.
I also tried symlinking it automatically using
update-rc.d, but it still doesn't work. Can someone help me, please?