summarylogtreecommitdiffstats
path: root/energia.install
blob: 4fdcb7de97454430d6f89b9d6e5aa0bf244c65c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
_sizes=(16 24 32 48)
post_install() {
  echo "Don't forget to add yourself to the 'uucp' and 'lock' groups: sudo usermod -aG<group> <user>"
  echo
  echo "You'll also probably want to reboot for the new permissions on /run/lock to take effect"
  for size in $_sizes; do
    xdg-icon-resource install --size $size --novendor /usr/share/pixmaps/energia.png
  done
}

post_upgrade() {
  echo "Reloading udev rules so launchpad USB devices enumerate with correct permissions pre-reboot"
  udevadm control --reload
}

post_remove() {
  for size in $_sizes; do
    xdg-icon-resource uninstall --size $size energia
  done
}