summary refs log tree commit diff
path: root/etc/debian/3
blob: ee3959339c34ab64f71cf80be9a53f0cf43f78b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
exec 2>&1

PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin

LAST=0
test -r /etc/runit/reboot && LAST=6

echo 'Waiting for getties to stop...'
svwaitdown -xk -t14 /service/getty-*

echo 'Waiting for services to stop...'
svwaitdown -xk -t350 /service/*

echo 'Shutdown...'
/etc/init.d/rc $LAST