From 746c2e6a2282ced1123fe4328e14016ff9b78443 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 15 Nov 2012 13:49:23 +0100 Subject: [PATCH] bash: Execute start files when loggin in over SSH. --- lfs/bash | 1 + src/patches/bash-3.2-ssh_source_bash.patch | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 src/patches/bash-3.2-ssh_source_bash.patch diff --git a/lfs/bash b/lfs/bash index 4fef89e9b8..c89ff545a9 100644 --- a/lfs/bash +++ b/lfs/bash @@ -95,6 +95,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/bash-4.0-paths-1.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/bash-4.0-profile-1.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/bash-3.2-ssh_source_bash.patch cd $(DIR_APP) && ./configure $(EXTRA_CONFIG) cd $(DIR_APP) && make $(EXTRA_MAKE) cd $(DIR_APP) && make $(EXTRA_INSTALL) install diff --git a/src/patches/bash-3.2-ssh_source_bash.patch b/src/patches/bash-3.2-ssh_source_bash.patch new file mode 100644 index 0000000000..4b371326a3 --- /dev/null +++ b/src/patches/bash-3.2-ssh_source_bash.patch @@ -0,0 +1,9 @@ +diff -up bash-3.2/config-top.h.ssh_source_bash bash-3.2/config-top.h +--- bash-3.2/config-top.h.ssh_source_bash 2008-10-23 15:08:04.000000000 +0200 ++++ bash-3.2/config-top.h 2008-10-23 15:08:33.000000000 +0200 +@@ -86,4 +86,4 @@ + + /* Define this if you want bash to try to check whether it's being run by + sshd and source the .bashrc if so (like the rshd behavior). */ +-/* #define SSH_SOURCE_BASHRC */ ++#define SSH_SOURCE_BASHRC -- 2.39.2