See sr#260940 for such a script, however I'm not sure that's enough. pm-utils hooks expect to be able to inhibit suspend/hibernate through exit codes. Currently there seems to be no way to emulate that behavior with systedmd's hooks.