dash is now /bin/sh

master
TiynGER 5 years ago
parent c9cbbb9893
commit a61acd9080

@ -14,11 +14,13 @@ while getopts ":a:r:b:p:h" o; do case "${o}" in
*) printf "Invalid option: -%s\\n" "$OPTARG" && exit ;; *) printf "Invalid option: -%s\\n" "$OPTARG" && exit ;;
esac done esac done
[ -z "$dotfilesrepo" ] && dotfilesrepo="https://github.com/tiynger/.dotfiles.git" [ -z "$dotfilesrepo" ] && dotfilesrepo="https://github.com/tiyn/.dotfiles.git"
[ -z "$progsfile" ] && progsfile="https://raw.githubusercontent.com/tiynger/LARBS/master/progs.csv" [ -z "$progsfile" ] && progsfile="https://raw.githubusercontent.com/tiyn/LARBS/master/resources/progs.csv"
[ -z "$aurhelper" ] && aurhelper="yay" [ -z "$aurhelper" ] && aurhelper="yay"
[ -z "$repobranch" ] && repobranch="master" [ -z "$repobranch" ] && repobranch="master"
bashhook="https://github.com/tiyn/LARBS/master/resources/bash-update.hook"
### FUNCTIONS ### ### FUNCTIONS ###
distro="arch" distro="arch"
@ -223,6 +225,10 @@ dbus-uuidgen > /var/lib/dbus/machine-id
# Let LARBS know the WM it's supposed to run. # Let LARBS know the WM it's supposed to run.
chown -R "$name":wheel "/home/$name/.local" chown -R "$name":wheel "/home/$name/.local"
# Set dash to /bin/sh
ln -sfT /bin/dash /bin/sh
curl $bashhook > /usr/share/libalpm/hooks/bash-update.hook
# This line, overwriting the `newperms` command above will allow the user to run # This line, overwriting the `newperms` command above will allow the user to run
# serveral important commands, `shutdown`, `reboot`, updating, etc. without a password. # serveral important commands, `shutdown`, `reboot`, updating, etc. without a password.
newperms "%wheel ALL=(ALL) ALL #LARBS newperms "%wheel ALL=(ALL) ALL #LARBS

@ -0,0 +1,11 @@
[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

@ -52,6 +52,7 @@ G,https://github.com/tiynger/slock.git,is the screen lock.,,
,acpi,is an advanced Configuration and Power Interface.,, ,acpi,is an advanced Configuration and Power Interface.,,
,cmatrix,adding the hacker-aura.,, ,cmatrix,adding the hacker-aura.,,
,ctags,is adding scan functionality to files opened in vim using tagbar.,, ,ctags,is adding scan functionality to files opened in vim using tagbar.,,
,dash,is a lightweight, fast, POSIX compliant shell.,,
,docx2txt,enables .docx file previews in vifm.,, ,docx2txt,enables .docx file previews in vifm.,,
,firefox,is the browser to rule them all.,, ,firefox,is the browser to rule them all.,,
A,htop-vim-git,provides system usage information and displays processes.,, A,htop-vim-git,provides system usage information and displays processes.,,
Can't render this file because it has a wrong number of fields in line 55.
Loading…
Cancel
Save