summarylogtreecommitdiffstats
path: root/pi-top-control.install
blob: 87c0be75c901bc9f5b6240b23d13ff36d369d87a (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

post_install() {
  test `grep "i2c:" /etc/group | wc -l` -gt 0 || groupadd i2c
  chgrp i2c /opt/ptctl/*
  systemctl enable ptctl-poweroff.service
}

pre_remove() {
  systemctl disable ptctl-poweroff.service
}