This commit is contained in:
Javier Pacheco 2023-05-23 05:15:48 -05:00
commit b147a60a04
1 changed files with 34 additions and 0 deletions

34
postinstall.sh Normal file
View File

@ -0,0 +1,34 @@
#!/bin/sh
packs () {
pkg install -y \
doas \
libXft \
libXinerama \
pkgconf \
zsh \ # opcional
xwallpaper \ # opcional
pfetch \ # opcional
xset \ # opcional
setxkbmap \ # opcional
xcape # opcional
}
doasconf () {
echo "permit nopass root" > /usr/local/etc/doas.conf
echo "permit javier as root" >> /usr/local/etc/doas.conf
echo "permit nopass javier" >> /usr/local/etc/doas.conf
}
userconf () {
chsh -s zsh javier
}
echo "Installing some necesary packages to compile suckless tools..."
packs && echo "packages installed correctly..." || echo "Run this command as root, check your internet conection."
echo "make the doas configuration file..."
doasconf && echo "doas config file generated..." || echo "something was wrong..."
echo "changing the shell..."
userconf && echo "user now have zsh shell..." || echo "Is zsh installled?"