Add flavours i3 and xorg; add choice for flavours; add reboot

This commit is contained in:
maride 2017-08-07 16:30:30 +02:00
parent 93273b4f7f
commit d27a676a8a
3 changed files with 32 additions and 7 deletions

8
flavours/i3/install.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
echo "~> Installing i3"
pacstrap /mnt i3 feh xcompmgr dmenu acpi
echo "~> Creating .xinitrc"
echo "xcompmgr -c &" > /mnt/home/$username/.xinitrc
echo "exec i3" >> /mnt/home/$username/.xinitrc

3
flavours/xorg/install.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
pacstrap /mnt xorg xorg-xinit

View File

@ -48,12 +48,26 @@ done
for flavour in flavours/*.flavour
do
echo "=> Running flavour '$flavour'..."
pushd $flavour
$flavour/run.sh
return=$?
if [ "$return" -ne 0 ]; then
echo "=> Flavour failed. :("
echo -n "=> Do you want to run flavour '$flavour'? (y/N) "
read answer
if [ "$answer" == "y" ]; then
echo "=> Running flavour '$flavour'..."
pushd $flavour
$flavour/run.sh
return=$?
if [ "$return" -ne 0 ]; then
echo "=> Flavour failed. :("
fi
popd
fi
popd
done
echo -n "=> Finished \o/ reboot now? (Y/n) "
read answer
if [ "$answer" == "n" ]; then
exit
fi
reboot