aboutsummaryrefslogtreecommitdiff
path: root/scripts/meson_script_links.sh
blob: dcb8f1d5df03934712b8f479551d7f1269f403a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e
set -u

rc_libexecdir="$1"
sbindir="$2"
binaries=" halt poweroff rc-sstat reboot shutdown"
for f in $binaries; do
	if [ -x "${DESTDIR}${rc_libexecdir}/bin/${f}"  ]; then
		ln -snf "${DESTDIR}${rc_libexecdir}/bin/${f}" \
			"${DESTDIR}${sbindir}/${f}"
	fi
done