/usr/lib/pm-utils/sleep.d/95packagekit is in packagekit 0.7.2-4ubuntu3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/bash
# Copyright (C) 2007-2008 Richard Hughes <richard@hughsie.com>
#
# Licensed under the GNU General Public License Version 2
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
case "$1" in
thaw|resume)
# get PackageKit to invalidate its caches and get new updates
dbus-send --system --dest=org.freedesktop.PackageKit \
--type=method_call --print-reply \
/org/freedesktop/PackageKit \
org.freedesktop.PackageKit.StateHasChanged \
string:'resume'
;;
*)
;;
esac
exit $?
|