You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
adrien b1d050f0b2 Update uninstall section of readme 2 years ago
bin Add makefile 2 years ago
49-onlykey-settime.rules Hot fix for device PVid 2 years ago
LICENSE Update license holders 2 years ago
Makefile Add makefile 2 years ago
README.md Update uninstall section of readme 2 years ago
main.go Run gofmt on source code 2 years ago

README.md

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.