blob: 7417999c96e0ca136da3b65a0e777a2af42e0db3 (
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
27
28
29
|
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
# -e is not set should this step fail for whatever reason the installation is still valid
set -u -o pipefail
# Reload rules
if [ -f /usr/bin/udevadm ]; then
udevadm control --reload-rules || echo "done"
udevadm trigger;
else
echo
echo "\/-------------------------------------------------------\\"
echo "\| Critical: This system does not have udev installed. \|"
echo "\| \|"
echo "\\-------------------------------------------------------\/"
echo
fi
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
|