Update udev rules with latest and bump the version

This commit is contained in:
Kiril Vladimiroff 2019-08-19 15:23:23 +03:00
parent 9cc507d7df
commit 25adde4256
No known key found for this signature in database
GPG Key ID: E8AC87A89B24A670
2 changed files with 19 additions and 9 deletions

View File

@ -11,12 +11,24 @@
# #
# After this file is installed, physically unplug and reconnect OnlyKey. # After this file is installed, physically unplug and reconnect OnlyKey.
# #
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1" ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1" ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666" SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666" KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"
# #
# If you share your linux system with other users, or just don't like the # If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with # idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with # OWNER:="yourusername" to create the device owned by you, or with
# GROUP:="somegroupname" and mange access using standard unix groups. # GROUP:="somegroupname" and mange access using standard unix groups.
#
# One requirement of TOTP (Time-based One-time Password) is having the correct
# time. If OnlyKey is used on a system where the OnlyKey app is not running it
# will display “NOTSET” instead of the OTP code. Because OnlyKey has no battery
# it requires an app to send it the correct time to be able to generate TOTP
# codes. If you have OnlyKey command-line utility installed, adding the
# following will automatically set the current time on OnlyKey every time you
# plug it: RUN+="/usr/local/bin/onlykey-cli settime"
#
# SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0660", GROUP:="onlykey", RUN+="/usr/local/bin/onlykey-cli settime"
# KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0660", GROUP:="onlykey", RUN+="/usr/local/bin/onlykey-cli settime"
#

View File

@ -1,14 +1,12 @@
pkgname=onlykey pkgname=onlykey
pkgver=5.1.0 pkgver=5.1.0
pkgrel=1 pkgrel=2
pkgdesc="OnlyKey Chrome Desktop App" pkgdesc="OnlyKey Chrome Desktop App"
arch=('x86_64') arch=('x86_64')
url="https://onlykey.io/" url="https://onlykey.io/"
license=('custom') license=('custom')
source=("https://github.com/trustcrypto/OnlyKey-App/releases/download/v${pkgver}/OnlyKey_${pkgver}_amd64.deb" source=("https://github.com/trustcrypto/OnlyKey-App/releases/download/v${pkgver}/OnlyKey_${pkgver}_amd64.deb")
"https://raw.githubusercontent.com/trustcrypto/trustcrypto.github.io/master/49-onlykey.rules") sha256sums=('4638ce8b21c66b6f414d937d08ba01917db3d20b050630e6b456c338ba1c9e06')
sha256sums=('4638ce8b21c66b6f414d937d08ba01917db3d20b050630e6b456c338ba1c9e06'
'23f3d18e8c5cd02823954f0065956b69e07bbdfeac95a04589beb33a154526c0')
package() { package() {
bsdtar -O -xf "OnlyKey_${pkgver}"*.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf - bsdtar -O -xf "OnlyKey_${pkgver}"*.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf -