add file
This commit is contained in:
commit
b147a60a04
1 changed files with 34 additions and 0 deletions
34
postinstall.sh
Normal file
34
postinstall.sh
Normal 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?"
|
Loading…
Reference in a new issue