1
0
mirror of https://github.com/tiyn/larbs.git synced 2025-11-19 11:19:46 +01:00

dash is now /bin/sh

This commit is contained in:
TiynGER
2020-05-04 11:03:13 +02:00
parent c9cbbb9893
commit a61acd9080
3 changed files with 20 additions and 2 deletions

View File

@@ -14,11 +14,13 @@ while getopts ":a:r:b:p:h" o; do case "${o}" in
*) printf "Invalid option: -%s\\n" "$OPTARG" && exit ;;
esac done
[ -z "$dotfilesrepo" ] && dotfilesrepo="https://github.com/tiynger/.dotfiles.git"
[ -z "$progsfile" ] && progsfile="https://raw.githubusercontent.com/tiynger/LARBS/master/progs.csv"
[ -z "$dotfilesrepo" ] && dotfilesrepo="https://github.com/tiyn/.dotfiles.git"
[ -z "$progsfile" ] && progsfile="https://raw.githubusercontent.com/tiyn/LARBS/master/resources/progs.csv"
[ -z "$aurhelper" ] && aurhelper="yay"
[ -z "$repobranch" ] && repobranch="master"
bashhook="https://github.com/tiyn/LARBS/master/resources/bash-update.hook"
### FUNCTIONS ###
distro="arch"
@@ -223,6 +225,10 @@ dbus-uuidgen > /var/lib/dbus/machine-id
# Let LARBS know the WM it's supposed to run.
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
# serveral important commands, `shutdown`, `reboot`, updating, etc. without a password.
newperms "%wheel ALL=(ALL) ALL #LARBS