summaryrefslogtreecommitdiffstats
path: root/abs/core/p11-kit/p11-kit.install
blob: 2f82c56c26eb0a61e0c7102506f8b6a33f3bc8d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
_global_units() {
    local unit=p11-kit-server.socket dir=/etc/systemd/user/sockets.target.wants

    case $1 in
        enable)
            mkdir -p $dir
            ln -sf /usr/lib/systemd/user/$unit $dir/$unit
            ;;
        disable)
            rm -f $dir/$unit
            rmdir -p --ignore-fail-on-non-empty $dir
            ;;
    esac
}

post_install() {
  # Enable socket by default
  _global_units enable
}

pre_remove() {
  _global_units disable
}