summaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/execline-shell
blob: 41e63b4d7e3bd3e7453782641322d44c3689b319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 $@