debian/btscanner.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | generate_oui_file() { |
| 6 | cp /usr/share/ieee-data/oui.txt /var/lib/btscanner/oui.txt.in |
| 7 | cd /var/lib/btscanner && /usr/share/btscanner/mk_oui_list.pl |
| 8 | rm /var/lib/btscanner/oui.txt.in |
| 9 | } |
| 10 | |
| 11 | if [ "$1" = "configure" ]; then |
| 12 | generate_oui_file |
| 13 | fi |
| 14 | |
| 15 | if [ "$1" = "triggered" ]; then |
| 16 | echo "Update specific oui.txt for btscanner" |
| 17 | generate_oui_file |
| 18 | fi |
| 19 | |
| 20 | #DEBHELPER# |