blob: 7b2bb59cd351d21fff0371b01e3727817c2ea593 [file] [log] [blame]
Andrew Geissleree126002021-02-01 16:17:23 -06001pkg_postinst_${PN}_append() {
2 mkdir -p $D$systemd_system_unitdir/obmc-host-crash@0.target.wants
3 mkdir -p $D$systemd_system_unitdir/obmc-host-timeout@0.target.wants
4
5 LINK="$D$systemd_system_unitdir/obmc-host-crash@0.target.wants/openpower-debug-collector-checkstop@0.service"
6 TARGET="../openpower-debug-collector-checkstop@.service"
7 ln -s $TARGET $LINK
8
9 LINK="$D$systemd_system_unitdir/obmc-host-timeout@0.target.wants/openpower-debug-collector-watchdog@0.service"
10 TARGET="../openpower-debug-collector-watchdog@.service"
11 ln -s $TARGET $LINK
12
13 LINK="$D$systemd_system_unitdir/obmc-host-timeout@0.target.wants/openpower-debug-collector-watchdog-timeout@0.service"
14 TARGET="../openpower-debug-collector-watchdog-timeout.service"
15 ln -s $TARGET $LINK
16}
17
18pkg_prerm_${PN}_append() {
19 LINK="$D$systemd_system_unitdir/obmc-host-crash@0.target.wants/openpower-debug-collector-checkstop@0.service"
20 rm $LINK
21 LINK="$D$systemd_system_unitdir/obmc-host-timeout@0.target.wants/openpower-debug-collector-watchdog@0.service"
22 rm $LINK
23 LINK="$D$systemd_system_unitdir/obmc-host-timeout@0.target.wants/openpower-debug-collector-watchdog-timeout@0.service"
24 rm $LINK
25}