dash: create /bin/sh and /usr/bin/sh symlinks at post-install time.

This commit is contained in:
Juan RP 2012-07-10 10:25:25 +02:00
parent d566c562a7
commit a9ea99db75
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,9 @@
case ${ACTION} in
pre)
# Create /bin/sh and /usr/bin/sh symlinks to /usr/bin/dash.
#
# It's expected that will make a dangling symlink, but once that
# dash is unpacked it will be ok.
[ ! -h usr/bin/sh ] && cd usr/bin && ln -sf dash sh
cd usr/bin && ln -sf dash sh && ln -sf dash ../../bin/sh
;;
esac

View file

@ -1,7 +1,7 @@
# Template file for 'dash'
pkgname=dash
version=0.5.7
revision=2
revision=3
build_style=gnu-configure
register_shell="/bin/sh"
depends="coreutils"