openwrt/package
Jeffery To 12020f8a95 base-files: Add /etc/shinit for non-login shell init
Because /etc/profile (and ~/.profile) are read by login shells only,
aliases and functions defined there are not available to non-login
shells, e.g. when using screen or tmux.

If the ENV environment variable exists (exported by /etc/profile or
~/.profile) and references an existing file, then all interactive shells
(login or non-login) will read that file as well.

This sets the ENV environment variable in /etc/profile, pointing to
/etc/shinit.

This also adds /etc/shinit, which:

* Contains alias and function definitions originally in /etc/profile

* Sources /etc/mkshrc if the user is using mksh (also originally in
  /etc/profile), as /etc/mkshrc is meant for all interactive shells

* Sources ~/.mkshrc if the user is using mksh, to compensate for the
  fact that mksh will not read ~/.mkshrc if ENV is set

* Sources ~/.shinit if the user is not using mksh

This also removes the shebang from /etc/profile, as the file is sourced,
not executed.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-01 21:35:59 +01:00
..
base-files base-files: Add /etc/shinit for non-login shell init 2020-03-01 21:35:59 +01:00
boot packages/boot: bump arm-trusted-firmware-mvebu version 2020-02-22 18:21:37 +01:00
devel strace: update to version 5.5 2020-02-24 23:25:28 +01:00
firmware ipq40xx: add support for EnGenius EAP2200 2020-02-28 22:29:10 +01:00
kernel mvebu: fix build regression due to neon-asm ghash module 2020-02-29 14:14:08 +01:00
libs libpcap: activate PIE ASLR by default 2020-03-01 21:35:59 +01:00
network ppp: activate PIE ASLR by default 2020-03-01 21:35:59 +01:00
system urngd: avoid PKG_NAME in define lines 2020-02-23 22:42:51 +01:00
utils bcm27xx-userland: update to latest version 2020-02-28 19:30:16 +01:00
Makefile packages: apply usign padding workarounds to package indexes if needed 2019-08-07 07:15:07 +02:00