about summary refs log tree commit diff
path: root/scripts/chroot-prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/chroot-prompt.sh')
-rw-r--r--scripts/chroot-prompt.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/chroot-prompt.sh b/scripts/chroot-prompt.sh
new file mode 100644
index 0000000..2b34426
--- /dev/null
+++ b/scripts/chroot-prompt.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -eu
+
+printf 'Name: '
+read -r nick rest
+printf '%s %s\n' "$nick" "$SSH_CLIENT" >>nicks.log
+exec catgirl -K -n "$nick" -s "${nick##*/}" -u "${SSH_CLIENT%% *}" "$@"