mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
bash: Enable system-wide .bashrc file, source /etc/shinit
This enables a system-wide .bashrc file (/etc/bash.bashrc), as well as some other options related to startup files, and sources /etc/shinit for interactive shells. Fixes https://bugs.openwrt.org/index.php?do=details&task_id=3019. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -39,6 +39,11 @@ define Package/bash/description
|
||||
incorporates useful features from the Korn and C shells (ksh and csh).
|
||||
endef
|
||||
|
||||
define Package/bash/conffiles
|
||||
/etc/bash.bashrc
|
||||
/etc/bash.bash_logout
|
||||
endef
|
||||
|
||||
# Bash detects and enables certain features by runtest simple piece of code
|
||||
# which is not viable when doing cross compilation and default to no in many
|
||||
# cases. Grep for 'cross.compil' in aclocal.m4 and config-bot.h for details
|
||||
@@ -89,6 +94,7 @@ define Package/bash/install
|
||||
$(INSTALL_DIR) $(1)/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/
|
||||
$(LN) bash $(1)/bin/rbash
|
||||
$(CP) ./files/* $(1)/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,bash))
|
||||
|
||||
Reference in New Issue
Block a user