summarylogtreecommitdiffstats
path: root/makeuki.install
blob: 0c015e120cfecd262a3ee903547ba8e2edd54309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pre_install() {
    mkdir /etc/mkinitcpio.d/old
    mkdir -p /var/lib/makeuki/include
    mv -vf /etc/mkinitcpio.d/*.preset /etc/mkinitcpio.d/old
}
post_install(){
    [ -f /etc/makeuki/makeuki.conf ] || cp /etc/makeuki/makeuki.conf.default /etc/makeuki/makeuki.conf
}
post_upgrade(){
    [ -f /etc/makeuki/makeuki.conf ] || cp /etc/makeuki/makeuki.conf.default /etc/makeuki/makeuki.conf
}
post_remove() {
    mv -vf /etc/mkinitcpio.d/old/* /etc/mkinitcpio.d/
    rm -rf /etc/mkinitcpio.d/old
}