blob: 529a2b7ea55e05120e9cd50e5005c1f92ea282b1 (
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
|
_servicename='brainboxes-serial-pci.service'
post_install() {
set -u
systemctl daemon-reload
systemctl enable "${_servicename}"
systemctl start "${_servicename}"
echo 'To install your card'
echo ' sudo bbportinst; sudo bash -x /etc/bbportinst.local'
set +u
}
post_upgrade() {
systemctl daemon-reload
}
pre_remove() {
set -u
systemctl stop "${_servicename}"
systemctl disable "${_servicename}"
set +u
}
post_remove() {
systemctl daemon-reload
rm -f '/etc/bbportinst.local'{~,.pacsave} '/etc/modprobe.d/parport_bb.conf'{~,.pacsave}
}
|