Also:
- increment the frontend file version for the change.
poweroff_util=$(readlink -f /usr/bin/poweroff)
-if grep -q "init=/usr/bin/66" /proc/cmdline; then
+if grep -q "s6-svscan" /proc/1/cmdline && [ $(pgrep -u root 66-shutdownd) ]; then
if [ "$poweroff_util" != /usr/bin/poweroff ]; then
for i in reboot poweroff halt shutdown; do
mv /usr/bin/${i} /usr/bin/${i}.runit
vinstall "${FILESDIR}"/runit 644 usr/share/66/service/
vsed -i "s/@VERSION@/0.0.1/" "${DESTDIR}/usr/share/66/service/runit"
vinstall "${FILESDIR}"/switch-initutils-66 644 usr/share/66/service/ switch-initutils
- vsed -i "s/@VERSION@/0.0.2/" "${DESTDIR}/usr/share/66/service/switch-initutils"
+ vsed -i "s/@VERSION@/0.0.3/" "${DESTDIR}/usr/share/66/service/switch-initutils"
vinstall "${FILESDIR}"/runit-wrapsv@ 644 usr/share/66/service/
vsed -i "s/@VERSION@/0.0.1/" "${DESTDIR}/usr/share/66/service/runit-wrapsv@"