#!/bin/sh
exec 2>&1
PATH=/command:/usr/bin:/bin:/usr/sbin:/sbin

LAST=0
test -x /lib/init/reboot && LAST=6
echo 'Waiting for services to stop ...'
sv -w196 force-stop /lib/init/services/*
sv exit /lib/init/services/*

echo "Shutdown..."
# /etc/init.d/rc $LAST
