From 486b06b4125c00dd6ffce079432022a11930ce01 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 19 May 2017 12:39:14 +0000 Subject: Add execline-startup and execline-shell to examples/ again --- examples/etc/execline-shell | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 examples/etc/execline-shell (limited to 'examples/etc/execline-shell') diff --git a/examples/etc/execline-shell b/examples/etc/execline-shell new file mode 100755 index 0000000..ac8c141 --- /dev/null +++ b/examples/etc/execline-shell @@ -0,0 +1,18 @@ +#!/bin/execlineb -S0 + +backtick -n defaulthome +{ + if -nt + { + backtick -n defaultuser { id -un } + importas -u defaultuser defaultuser + importas -D $defaultuser USER USER + redirfd -w 2 /dev/null + homeof ${USER} + } + s6-echo / +} +importas -u defaulthome defaulthome +importas -D $defaulthome HOME HOME +tryexec { ${HOME}/.execline-shell $@ } +/bin/sh $@ -- cgit v1.2.3