#!/bin/shif! /usr/bin/lockf -s-t 30 /tmp/config.lock /usr/bin/true;thenecho"Cannot halt at this moment, a config write operation is in progress and 30 seconds have passed."exit-1fisleep 1
/usr/local/etc/rc.backup_rrd/usr/local/etc/rc.backup_dhcpleasessleep 1SHUTDOWN=/sbin/shutdownif[-f /sbin/shutdown.old ];thenSHUTDOWN=/sbin/shutdown.oldfi$SHUTDOWN-p now