package/bash: fix naming of target-finalize-hook
When the target-finalize-hook for bash was added in commit311c9eebc4
in order to write bash into /etc/shells, it was done at the same time as for package/mksh and it was incorrectly copied and MKSH still appeared in the name of the hook. The hook is now correctly named BASH_ADD_BASH_TO_SHELLS Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit7f96255f4a
) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
c59348420f
commit
f953a186d1
@ -62,10 +62,10 @@ endif
|
||||
|
||||
# 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
|
||||
define BASH_ADD_BASH_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
|
||||
BASH_TARGET_FINALIZE_HOOKS += BASH_ADD_BASH_TO_SHELLS
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
Loading…
Reference in New Issue
Block a user