summarylogtreecommitdiffstats
path: root/pacman-boot-backup-hook.install
blob: b99b665c18b1416537936a29d907d1f716457fef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
blue="${bold}$(tput setaf 4)"
yellow="${bold}$(tput setaf 3)"

msg() {
    printf "${blue}==>${bold} $1${all_off}\n"
}

warning() {
    printf "${blue}==>${yellow} WARNING$2:${bold} $1${all_off}\n"
}

post_upgrade() {
	if [[ $1 == 1.4-* && $2 == 1.3-* ]]; then
		warning "Variable \$BACKUP_PATH_SRC in pacman-boot-backup.conf is no longer effective!"
		msg "In case /etc/pacman-boot-backup.conf wasn't modified, no actions are required!"
		msg "From now on, only files within /boot will be backed up!"
	fi
}