sys-apps/systemd-units: The last unit file is in the main tree!
[user/systemd.git] / sys-apps / systemd-units / files / 90_kexec
1 #!/bin/sh
2
3 version="$1" ; shift
4 image="$1" ; shift
5
6 for s in `systemctl show kexec.target | sed -nre 's/^Wants=(.*)/\1/p'` ; do
7         case "${s}" in
8                 kexec-load@*) systemctl disable "${s}" ;;
9         esac
10 done
11
12 exec systemctl enable kexec-load@"${version}"