|
@@ -39,14 +39,18 @@ BASH_CONF_ENV += bash_cv_getenv_redef=yes
|
|
|
endif
|
|
|
endif
|
|
|
|
|
|
-# Add /bin/bash to /etc/shells otherwise some login tools like dropbear
|
|
|
-# can reject the user connexion. See man shells.
|
|
|
define BASH_INSTALL_TARGET_CMDS
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
|
DESTDIR=$(TARGET_DIR) exec_prefix=/ install
|
|
|
rm -f $(TARGET_DIR)/bin/bashbug
|
|
|
+endef
|
|
|
+
|
|
|
+# Add /bin/bash to /etc/shells otherwise some login tools like dropbear
|
|
|
+# can reject the user connection. See man shells.
|
|
|
+define BASH_ADD_MKSH_TO_SHELLS
|
|
|
grep -qsE '^/bin/bash$$' $(TARGET_DIR)/etc/shells \
|
|
|
|| echo "/bin/bash" >> $(TARGET_DIR)/etc/shells
|
|
|
endef
|
|
|
+BASH_TARGET_FINALIZE_HOOKS += BASH_ADD_MKSH_TO_SHELLS
|
|
|
|
|
|
$(eval $(autotools-package))
|