[Lunar-commits] <moonbase> bash_static: move to /usr/bin
Zbigniew Luszpinski
zbiggy at lunar-linux.org
Sun Apr 29 15:54:11 CEST 2012
commit 99dc74112ab26b51a569a0f7f7d29cddb059de42
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date: Sun Apr 29 15:54:11 2012 +0200
bash_static: move to /usr/bin
---
shells/bash_static/BUILD | 8 +++++---
shells/bash_static/DETAILS | 2 +-
shells/bash_static/POST_INSTALL | 4 ++--
shells/bash_static/POST_REMOVE | 5 +++--
4 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/shells/bash_static/BUILD b/shells/bash_static/BUILD
index bf159fa..871b29c 100644
--- a/shells/bash_static/BUILD
+++ b/shells/bash_static/BUILD
@@ -27,8 +27,7 @@
patch_it $SOURCE24 0 &&
patch_it $SOURCE25 0 &&
- OPTS+=" --bindir=/bin \
- --without-bash-malloc \
+ OPTS+=" --without-bash-malloc \
--without-installed-readline \
--with-curses \
--enable-static-link \
@@ -39,6 +38,9 @@
make &&
prepare_install &&
- cp -f bash /bin/bash_static
+ cp -f bash /usr/bin/bash_static &&
+
+ # legacy links to /bin
+ ln -sf /usr/bin/bash_static /bin/bash_static
) > $C_FIFO 2>&1
diff --git a/shells/bash_static/DETAILS b/shells/bash_static/DETAILS
index 3cbff7a..8e1ae07 100644
--- a/shells/bash_static/DETAILS
+++ b/shells/bash_static/DETAILS
@@ -87,6 +87,6 @@ cat << EOF
bash_static is the same as bash (Bourne Again SHell) -- just
a static build of it so one can use it as a rescue shell
without relying on any shared libraries.
-It will be located at /bin/bash_static. You can call it with
+It will be located at /usr/bin/bash_static. You can call it with
$ bash_static
EOF
diff --git a/shells/bash_static/POST_INSTALL b/shells/bash_static/POST_INSTALL
index 2236e65..440633d 100644
--- a/shells/bash_static/POST_INSTALL
+++ b/shells/bash_static/POST_INSTALL
@@ -1,7 +1,7 @@
cat << END
The static build of bash is installed and located at
-/bin/bash_static.
+/usr/bin/bash_static.
This is NOT an ordinary shell. It is installed for
rescue purposes.
@@ -9,5 +9,5 @@ rescue purposes.
END
if [ "$ROOTSHELL" == "y" ] ; then
- chsh -s /bin/bash_static root
+ chsh -s /usr/bin/bash_static root
fi
diff --git a/shells/bash_static/POST_REMOVE b/shells/bash_static/POST_REMOVE
index 714a22a..0b2bde7 100644
--- a/shells/bash_static/POST_REMOVE
+++ b/shells/bash_static/POST_REMOVE
@@ -1,4 +1,5 @@
# set root shell to normal bash again
-if [ `getent passwd root | cut -d: -f7` == "/bin/bash_static" ] ; then
- chsh -s /bin/bash root
+if [ `getent passwd root | cut -d: -f7` == "/usr/bin/bash_static" ] ; then
+ chsh -s /usr/bin/bash root
fi
+rm -f /bin/bash_static
More information about the Lunar-commits
mailing list