Hi, I'm running Raspian an Debian fork.
You are right a link is created called K01dmpsustop
This is run when shutdown (poweroff), but it's run to early. The script look like this:
Code:
#! /bin/sh
### BEGIN INIT INFO
# Provides: dmpsustop
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop: 0
# Short-Description:
# Description:
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
. /lib/lsb/init-functions
do_stop () {
log_action_msg "------------///////////////\\\\\\\\\\\\\\\----------">&2
log_action_msg "---- Shut down ----">&2
}
case "$1" in
start)
# No-op
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
do_stop
;;
*)
echo "Usage: $0 stop" >&2
exit 3
;;
esac