diff options
| -rwxr-xr-x | examples/etc/execline-shell | 10 | ||||
| -rwxr-xr-x | examples/etc/execline-startup | 4 |
2 files changed, 6 insertions, 8 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 $@ diff --git a/examples/etc/execline-startup b/examples/etc/execline-startup index 4afc557..ec64c83 100755 --- a/examples/etc/execline-startup +++ b/examples/etc/execline-startup @@ -2,8 +2,8 @@ /bin/multisubstitute { - importas -i HOME HOME - importas -i LOGNAME LOGNAME + importas -Si HOME + importas -Si LOGNAME } /bin/export USER ${LOGNAME} /bin/s6-envdir /etc/env-startup |
