From fc7695ee76400ee9833301f98a3fe483d64591b5 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 12 Nov 2007 13:13:20 -0800 Subject: initial import from bash_3.1dfsg-8.diff.gz --- debian/bash.postinst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 debian/bash.postinst (limited to 'debian/bash.postinst') diff --git a/debian/bash.postinst b/debian/bash.postinst new file mode 100644 index 0000000..3db17ee --- /dev/null +++ b/debian/bash.postinst @@ -0,0 +1,22 @@ +#! /bin/bash -e + +# the symlink is in the package now. So this should never happen ... +if [ ! -e /bin/sh ]; then + ln -s bash /bin/sh +fi + +update-alternatives --install \ + /usr/share/man/man7/builtins.7.gz \ + builtins.7.gz \ + /usr/share/man/man7/bash-builtins.7.gz \ + 10 \ + || true + +if [ -x /usr/sbin/add-shell ]; then + /usr/sbin/add-shell /bin/bash + /usr/sbin/add-shell /bin/rbash +fi + +#DEBHELPER# + +exit 0 -- cgit v1.2.3