Add flavours i3 and xorg; add choice for flavours; add reboot
This commit is contained in:
parent
93273b4f7f
commit
d27a676a8a
8
flavours/i3/install.sh
Normal file
8
flavours/i3/install.sh
Normal 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
3
flavours/xorg/install.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pacstrap /mnt xorg xorg-xinit
|
28
install.sh
28
install.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user