Go to file
adrien b1d050f0b2 Update uninstall section of readme
Signed-off-by: adrien <adrien@iglou.eu>
2020-01-29 13:48:33 +01:00
bin Add makefile 2020-01-26 19:06:38 +01:00
49-onlykey-settime.rules Hot fix for device PVid 2020-01-27 11:21:15 +00:00
LICENSE Update license holders 2020-01-26 10:37:25 +00:00
Makefile Add makefile 2020-01-26 19:06:38 +01:00
README.md Update uninstall section of readme 2020-01-29 13:48:33 +01:00
main.go Run gofmt on source code 2020-01-26 14:26:13 +01:00

onlyKeySetTime Go Report Card

An OnlyKey set time, implemented on GO. This project only need a system with udev to run (or binary usage only), no more Py script. Because it is a cool first Go project and i don't like Py (especially 2.7)

This udev rules are base on official rules, but add (0x1d50, 0x60fc) and (0x16C0, 0x0486) devices support into.

Installation

From releases Replace ARCH - regular udev and local/bin - need wget and to be root

ARCH='amd64' # 386 amd64 arm arm64
OS='linux'

bin="onlykey-settime_${OS}_${ARCH}"
rules="49-onlykey-settime.rules"
binlink="https://git.iglou.eu/adrien/onlyKeySetTime/releases/download/v1.0.0/"
tmp="$(mktemp -d)" && cd "$tmp"
wget "${binlink}${bin}" && chmod +x "${bin}"
wget "${binlink}${bin}.sha256"
wget "${binlink}${rules}"
sha256sum -c "${bin}.sha256" && { cp "${bin}" "/usr/local/bin/${bin%%_*}"; cp ${rules} /etc/udev/rules.d/; udevadm control --reload; }
cd "/tmp" && rm -rf "${tmp}"
echo "DONE !"

From source code

git clone https://git.iglou.eu/adrien/onlyKeySetTime.git
cd onlyKeySetTime
make install

Binary only

You can use makefile for Cross-Compiling, ex : 'make build GOOS='linux' GOARCH='arm''" Binary are on ./bin

git clone https://git.iglou.eu/adrien/onlyKeySetTime.git
cd onlyKeySetTime
make build

Clean and Uninstall

For clean repos

make clean

For uninstall

make remove

License

MIT License, see LICENSE.md.