This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| echo "Installing DisplayLink drivers for Debian based" | |
| echo "Warning : UEFI / Secure Boot must be disable (or follow this additional procedure : https://github.com/AdnanHodzic/displaylink-debian/blob/master/self-signing-modules.md)" | |
| echo -e "\nWriting config file\n" | |
| cd /tmp | |
| sudo mkdir -p /etc/X11/xorg.conf.d/ | |
| cat | sudo tee /etc/X11/xorg.conf.d/20-displaylink.conf <<EOF |