aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL/common.d/10_base
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2018-02-07 10:20:19 +0100
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2018-02-07 10:20:19 +0100
commitf16fd7f0de5af1adb572d879f921918fda09c725 (patch)
tree6bd88f84375924516af0d96216dfa378d3e32ffe /INSTALL/common.d/10_base
parentf145d7ca1ae85950dce357ccefdc52ce008d84e1 (diff)
parent217bd04b7490a593d6fc2c3cb0c65457a2bf9fac (diff)
Merge commit '217bd04' into dabdab_4.0.3dab/4.0.34.0.3
Diffstat (limited to 'INSTALL/common.d/10_base')
-rw-r--r--INSTALL/common.d/10_base11
1 files changed, 11 insertions, 0 deletions
diff --git a/INSTALL/common.d/10_base b/INSTALL/common.d/10_base
index e429e65..5cff36b 100644
--- a/INSTALL/common.d/10_base
+++ b/INSTALL/common.d/10_base
@@ -1,5 +1,16 @@
#!/bin/bash
+# set bash as default shell for /bin/sh
+diverter=$(dpkg-divert --listpackage /bin/sh)
+[[ "$diverter" == "dash" ]] && {
+ # inspired by dash postinstall
+ dpkg-divert --package dash --remove /bin/sh
+ dpkg-divert --package bash --divert /bin/sh.distrib --add /bin/sh
+ [[ -e /bin/sh ]] && cp -dp /bin/sh /bin/sh.distrib
+ ln -sf bash /bin/sh.tmp
+ mv -f /bin/sh.tmp /bin/sh
+}
+
# add backports and testing repositories
echo "deb http://http.debian.net/debian jessie-backports main contrib" >>/etc/apt/sources.list