You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12020f8a95
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> |
4 years ago | |
---|---|---|
.. | ||
board.d | 9 years ago | |
hotplug.d/net | 6 years ago | |
init.d | 4 years ago | |
iproute2 | 6 years ago | |
rc.button | 5 years ago | |
sysctl.d | 5 years ago | |
uci-defaults | 5 years ago | |
banner | 7 years ago | |
banner.failsafe | 6 years ago | |
device_info | 9 years ago | |
diag.sh | 4 years ago | |
ethers | 6 years ago | |
fstab | 8 years ago | |
group | 5 years ago | |
hosts | 9 years ago | |
inittab | 8 years ago | |
openwrt_release | 7 years ago | |
openwrt_version | 8 years ago | |
os-release | 8 years ago | |
passwd | 13 years ago | |
preinit | 8 years ago | |
profile | 4 years ago | |
protocols | 9 years ago | |
rc.common | 5 years ago | |
rc.local | 15 years ago | |
services | 6 years ago | |
shadow | 10 years ago | |
shells | 18 years ago | |
shinit | 4 years ago | |
sysctl.conf | 6 years ago | |
sysupgrade.conf | 14 years ago |