blob: 938882ae5bf52a76cd44d9ce6af08ebcd607bc0e (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
{
grep '^#INIT ' /etc/init.d/* | \
sort -rnk2 | \
while read line; do
sh ${line%%:*} autostop
done
} | logger -s -p 6 -t ''
|