master rc.shutdown
 1#!/bin/rc
 2
 3path=/bin
 4
 5killall5
 6sleep 1
 7killall5 -s KILL
 8sleep 1
 9
10mount -o remount,ro /
11sync
12
13umount -a
14
15wait
16
17switch($1) {
18case -p
19	exec halt -p
20case -r
21	exec halt -r
22}