I just wondered if someone can able to run shutdownconfig script via ConsoleKit2. Some mainstream desktop environment calls ConsoleKit2 for shutting down or restarting the system. Based from ConsoleKit source code it calls the scripts from /usr/lib/ConsoleKit/scripts/
ck-system-hibernate -- calls pm-hibernate from pm-utils (suspend on disk)
ck-system-hybridsleep -- calls pm-hybrid from pm-utils (suspend on disk)
ck-system-restart -- calls "shutdown -r" command (reboot)
ck-system-stop -- calls shutdown command
ck-system-suspend -- calls pm-suspend from pm-utils (sleep)
I tried to modify the /etc/rc.d/rc.shutdown script and shutdownconfig. Still I have no luck to run shutdownconfig upon shutdown.