summaryrefslogtreecommitdiff
path: root/pacman-g2.hook
blob: bd93d7345ed5f6005e1b5ef59cde7f448ea8f2be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

pre_sysupgrade() {
	if [ -x /usr/sbin/etckeeper ]; then
		etckeeper pre-install
	fi
}

post_sysupgrade() {
	if [ -x /usr/sbin/etckeeper ]; then
		etckeeper post-install
	fi
}

op=$1
shift
$op $*