#!/bin/sh

[ $# -ge 2 ] && [ "$(apk version -t "$2" '1.5-r7')" = '>' ] && exit 0

cat >&2 <<EOF
*
* It's highly recommended to *not* run swaylock directly, but via some
* supervisor that restarts it upon crash. You can use a real supervisor,
* such as s6-supervise, or a tiny launcher swaylockd (apk add swaylockd).
*
EOF

exit 0
