artix

desc
git clone https://git.awy.one/artix.git
Log | Files | Refs | README | LICENSE

commit 1ab16323eafe4b9a0697b92561ca5463fe8f5b3a
parent 423cac079c9228fe0f9243b0bbd726066441b8aa
Author: awy <awy@tutamail.com>
Date:   Tue, 20 Aug 2024 19:06:17 +0300

dash as sh

Diffstat:
Mpost_chroot.sh | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/post_chroot.sh b/post_chroot.sh @@ -79,4 +79,22 @@ if [ "$_kernelflag" -eq 1 ]; then grub-mkconfig -o /boot/grub/grub.cfg fi +# use dash as sh +pacman -Sy dash +ln -sfT dash /usr/bin/sh +mkdir -p /etc/pacman.d/hooks +cat <<EOL >> /etc/pacman.d/hooks/bash.hook +[Trigger] +Type = Package +Operation = Install +Operation = Upgrade +Target = bash + +[Action] +Description = Re-pointing /bin/sh symlink to dash... +When = PostTransaction +Exec = /usr/bin/ln -sfT dash /usr/bin/sh +Depends = dash +EOL + rm /post_chroot.sh