blob: df671e6f33c737f6eba0a539674df7a8279245bc (
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
|
msg() {
ALL_OFF="\e[1;0m"
BOLD="\e[1;1m"
GREEN="${BOLD}\e[1;32m"
local mesg=$1; shift
printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&2
}
post_upgrade() {
msg "Attempting to enable iio-sensor-proxy service..."
systemctl is-active iio-sensor-proxy >/dev/null || systemctl enable iio-sensor-proxy
echo ""
msg "services enabled."
echo ""
}
post_install() {
msg "Attempting to enable iio-sensor-proxy service..."
systemctl is-active iio-sensor-proxy >/dev/null || systemctl enable iio-sensor-proxy
echo ""
msg "services enabled."
echo ""
msg "services should now be enabled."
msg "Reboot your system, so changes will take effect.."
echo ""
}
# vim: ts=2 sw=2 et:
|