#!/bin/shexec>/dev/console2>&1PATH=/sbin:/usr/sbin:/bin:/usr/bin
echo'Waiting for getties to stop...'
svshutdown-w10/var/service/getty-*
echo'Waiting for services to stop...'
svshutdown-w300/var/service/*
echo'Shutdown...'test-x/etc/runit/reboot&&LAST=6||LAST=0test-x/etc/runit/reboot&&RC=reboot||RC=shutdown
RUNLEVEL=$LAST/sbin/rc$RC