summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pinentry-auto3
-rwxr-xr-xscripts/ssh-lxd9
2 files changed, 1 insertions, 11 deletions
diff --git a/scripts/pinentry-auto b/scripts/pinentry-auto
index 54e59c2..66ca97c 100755
--- a/scripts/pinentry-auto
+++ b/scripts/pinentry-auto
@@ -7,8 +7,7 @@ if [ -z "$exists" ]; then
PATH="/run/current-system/sw/bin/:"$PATH
fi
-
-if pgrep -x 'X|Xorg' > /dev/null; then
+if pgrep -x 'X|Xorg' >/dev/null; then
/home/"$USER"/bin/pinentry-dmenu "$@"
else
pinentry-curses "$@"
diff --git a/scripts/ssh-lxd b/scripts/ssh-lxd
deleted file mode 100755
index b4bf2fe..0000000
--- a/scripts/ssh-lxd
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env bash
-
-IP=$(lxc ls -fcsv | grep $1 | tr ' ' , | cut -d, -f3)
-if ! ssh -o BatchMode=yes root@$IP; then
- lxc exec $1 -- bash -c "mkdir -p /root/.ssh && \
- echo \"$(ssh-add -L)\" \
- > /root/.ssh/authorized_keys"
- ssh root@$IP
-fi