dash: some fixes for /bin/sh symlink.
1) Always create /bin/sh symlink at post-installation. 2) If dash is going to be removed, make /bin/sh a symlink to /bin/bash, if it exists otherwise it will be dangled. This fixes the update of the dash package. Bump revision. --HG-- extra : convert_revision : 38586de9f72d0b5f4c7498dbef3709d77f4f07db
This commit is contained in:
15
templates/dash/REMOVE
Normal file
15
templates/dash/REMOVE
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# This script remove the /bin/sh symlink to /bin/dash
|
||||
# and makes a new one to /bin/bash if available.
|
||||
#
|
||||
|
||||
case "${ACTION}" in
|
||||
pre)
|
||||
if [ -x ./bin/bash ]; then
|
||||
echo "Creating /bin/sh -> /bin/bash symlink..."
|
||||
cd ./bin && ln -sf bash sh
|
||||
fi
|
||||
;;
|
||||
post)
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user