summarylogtreecommitdiffstats
path: root/pacman-boot-backup-hook.install
blob: 13f9e93bbb26dd6e35ac3e65647a3dce583f45ea (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 [[ $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
}