blob: 0ec1fab52ce02ff68717e4203dc8e1c886e711dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
post_install() {
getent group rtkit &>/dev/null || /usr/sbin/groupadd -g 133 rtkit || return 1
getent passwd rtkit &>/dev/null || /usr/sbin/useradd -u 133 -g rtkit -c 'RealtimeKit' -s /sbin/nologin -d /proc rtkit || return 1
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1
true
}
post_upgrade() {
if (( $(vercmp $2 0.10) < 0 )); then
# Get rid of old user and group
post_remove
fi
post_install
}
post_remove() {
getent passwd rtkit &>/dev/null && /usr/sbin/userdel -f rtkit
getent group rtkit &>/dev/null && /usr/sbin/groupdel rtkit
true
}
# vim:set ts=2 sw=2 et:
|