From 82d0f92ab8b84466ae20ab919c1f9c3577b5cecb Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 22 May 2017 21:56:04 +0000 Subject: Initial commit --- layout/rootfs/etc/execline-shell | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 layout/rootfs/etc/execline-shell (limited to 'layout/rootfs/etc/execline-shell') diff --git a/layout/rootfs/etc/execline-shell b/layout/rootfs/etc/execline-shell new file mode 100755 index 0000000..41e63b4 --- /dev/null +++ b/layout/rootfs/etc/execline-shell @@ -0,0 +1,17 @@ +#!/command/execlineb -S0 + +backtick -n defaulthome +{ + if -nt + { + backtick -n defaultuser { id -un } + import -u defaultuser + import -D $defaultuser USER + redirfd -w 2 /dev/null + homeof ${USER} + } + s6-echo / +} +import -u defaulthome +import -D $defaulthome HOME +${HOME}/.execline-shell $@ -- cgit v1.3.1