Skip to content

Instantly share code, notes, and snippets.

@Dramelac
Dramelac / wait_for_yubikey.sh
Created March 14, 2023 09:26
Wait for yubikey
#!/bin/bash
i=0
timeout=60
[[ $(fido2-token -L | wc -l) -eq 0 ]] && echo "Connect YubiKey first" && while [[ $(fido2-token -L | wc -l) -eq 0 && $i -lt $timeout ]]; do ((i++)); sleep 1; done
[[ $i -ge $timeout ]] && echo "Timeout." && exit 1
exit 0
@Dramelac
Dramelac / displaylink_setup.sh
Last active October 9, 2020 15:44
Debian DisplayLink auto setup