summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2023-02-12 17:06:17 +0100
committerTom Barrett <tom@tombarrett.xyz>2023-02-12 17:06:17 +0100
commitd42be4aae613212561e8b0e608ca313be5d89330 (patch)
tree85b00e66960b553712d3a92557cd6482c00ce6e6 /scripts
parentc9d032760c886d5b639df15e50ac8b0636cb0524 (diff)
2023 update
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