summarylogtreecommitdiffstats
path: root/u2f-emulated.install
blob: ac296402c7de70ef211d5982b32ae248fc73f8b5 (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
post_install() {
#!/usr/bin/env bash
# Program:
#	script to be run after package installation

systemctl daemon-reload
systemctl enable u2f-emulated.service
# systemctl start u2f-emulated.service
echo "
Don't forget to run /usr/bin/u2f-emulated-setup as root to create you key!
"

}

post_remove() {
#!/usr/bin/env bash
# Program:
#	script to be run after package removal

echo "run post uninstall script, action is $1 ..."

[ "$1" = "remove" ] || [ "$1" = "purge" ] || exit 0

if [ -d "/usr/share/u2f-emulated/" ]; then
	rm -r "/usr/share/u2f-emulated/"
fi

}