diff --git a/package/bash/bash.mk b/package/bash/bash.mk index 089d062875..03f8f286ed 100644 --- a/package/bash/bash.mk +++ b/package/bash/bash.mk @@ -40,10 +40,14 @@ endif endif # Make /bin/sh -> bash (no other shell, better than busybox shells) +# 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 + grep -qsE '^/bin/bash' $(TARGET_DIR)/etc/shells \ + || echo "/bin/bash" >> $(TARGET_DIR)/etc/shells endef $(eval $(autotools-package))