summaryrefslogtreecommitdiff
path: root/examples/etc/execline-startup
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-05-19 12:39:14 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-05-19 12:39:14 +0000
commit486b06b4125c00dd6ffce079432022a11930ce01 (patch)
treec8db5f303c1b6b3bc160d2eee25b2a62e0e517ab /examples/etc/execline-startup
parent80e1bb78abff39447d6312d837dd0d8155e63c8a (diff)
downloadexecline-486b06b4125c00dd6ffce079432022a11930ce01.tar.xz
Add execline-startup and execline-shell to examples/ again
Diffstat (limited to 'examples/etc/execline-startup')
-rwxr-xr-xexamples/etc/execline-startup15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/etc/execline-startup b/examples/etc/execline-startup
new file mode 100755
index 0000000..4afc557
--- /dev/null
+++ b/examples/etc/execline-startup
@@ -0,0 +1,15 @@
+#!/bin/execlineb -S0
+
+/bin/multisubstitute
+{
+ importas -i HOME HOME
+ importas -i LOGNAME LOGNAME
+}
+/bin/export USER ${LOGNAME}
+/bin/s6-envdir /etc/env-startup
+/bin/fdblock 0
+/bin/fdblock 1
+/bin/fdblock 2
+
+/bin/tryexec { ${HOME}/.execline-loginshell $@ }
+/etc/execline-shell $@