summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2021-03-04 14:11:29 -0500
committerAndrew Cady <d@jerkface.net>2021-03-07 19:45:28 -0500
commitb6a651148e7a20cdd94d1dc8ee662c9724c0d15e (patch)
treee4dd587bb9d5eef355184321438687e33315f2fa
parentb6f844fcabfb9d818ff406f2c8733c2a55f4f903 (diff)
add sash (also named penyou for symmetry)
-rw-r--r--Makefile1
-rwxr-xr-xpenyou4
l---------sash1
3 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6b461ec..1a06edc 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ install-depends-stamp:
17 17
18install: install-depends-stamp $(binaries) 18install: install-depends-stamp $(binaries)
19 $(sudo) install $(binaries) -t $(DESTDIR)$(bindir) 19 $(sudo) install $(binaries) -t $(DESTDIR)$(bindir)
20 $(sudo) ln -s penyou $(DESTDIR)$(bindir) sash
20 21
21penetrated: install 22penetrated: install
22 penme 23 penme
diff --git a/penyou b/penyou
new file mode 100755
index 0000000..cc7fdda
--- /dev/null
+++ b/penyou
@@ -0,0 +1,4 @@
1#!/bin/sh
2sudo=$([ $(id -u) -eq 0 ] || echo sudo --)
3exec $sudo ssh -i /etc/ssh/ssh_host_ed25519_key -l root "$@"
4
diff --git a/sash b/sash
new file mode 120000
index 0000000..62f8dc8
--- /dev/null
+++ b/sash
@@ -0,0 +1 @@
penyou \ No newline at end of file