-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5-timeshift.sh
50 lines (45 loc) · 1.59 KB
/
5-timeshift.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# _____ _ _ _ __ _
# |_ _(_)_ __ ___ ___ ___| |__ (_)/ _| |_
# | | | | '_ ` _ \ / _ \/ __| '_ \| | |_| __|
# | | | | | | | | | __/\__ \ | | | | _| |_
# |_| |_|_| |_| |_|\___||___/_| |_|_|_| \__|
#
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
# Timeshift Install Script
# yay must be installed
# -----------------------------------------------------
# NAME: Timeshift Installation
# DESC: Installation script for timeshift
# WARNING: Run this script at your own risk.
clear
echo " _____ _ _ _ __ _ "
echo "|_ _(_)_ __ ___ ___ ___| |__ (_)/ _| |_ "
echo " | | | | '_ ' _ \ / _ \/ __| '_ \| | |_| __| "
echo " | | | | | | | | | __/\__ \ | | | | _| |_ "
echo " |_| |_|_| |_| |_|\___||___/_| |_|_|_| \__| "
echo " "
echo ""
# -----------------------------------------------------
# Confirm Start
# -----------------------------------------------------
while true; do
read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn
case $yn in
[Yy]* )
echo "Installation started."
break;;
[Nn]* )
exit;
break;;
* ) echo "Please answer yes or no.";;
esac
done
# -----------------------------------------------------
# Install zram
# -----------------------------------------------------
yay --noconfirm -S timeshift
echo "DONE!"
echo "You can create snapshots and update the GRUB Bootloader with ./snapshot.sh"