diff options
Diffstat (limited to 'examples/etc/execline-shell')
| -rwxr-xr-x | examples/etc/execline-shell | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/etc/execline-shell b/examples/etc/execline-shell index ac8c141..4e81ac0 100755 --- a/examples/etc/execline-shell +++ b/examples/etc/execline-shell @@ -1,18 +1,16 @@ #!/bin/execlineb -S0 -backtick -n defaulthome +backtick -nE defaulthome { if -nt { - backtick -n defaultuser { id -un } - importas -u defaultuser defaultuser - importas -D $defaultuser USER USER + backtick -nE defaultuser { id -un } + importas -SD $defaultuser USER redirfd -w 2 /dev/null homeof ${USER} } s6-echo / } -importas -u defaulthome defaulthome -importas -D $defaulthome HOME HOME +importas -SD $defaulthome HOME tryexec { ${HOME}/.execline-shell $@ } /bin/sh $@ |
