From bd114c0d889bf3bf12e259896b6c3bcfe9dc4f72 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 31 Mar 2015 09:11:16 +0000 Subject: [PATCH] changed order of config lock check on shutdown, if some (custom) scripts waits to long the webui might still trash the config --- src/etc/rc.halt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/etc/rc.halt b/src/etc/rc.halt index 49757d72c..7d69abccf 100755 --- a/src/etc/rc.halt +++ b/src/etc/rc.halt @@ -1,5 +1,11 @@ #!/bin/sh +# shutdown rc scripts +/usr/local/etc/rc.opnsense stop + +/usr/local/etc/rc.backup_rrd +/usr/local/etc/rc.backup_dhcpleases + # wait for config lock to release php -a >/dev/null << EOF \$fp = fopen('/conf/config.xml', "w+"); @@ -10,10 +16,4 @@ if (flock(\$fp, LOCK_EX)) { EOF -# shutdown rc scripts -/usr/local/etc/rc.opnsense stop - -/usr/local/etc/rc.backup_rrd -/usr/local/etc/rc.backup_dhcpleases - /sbin/shutdown -op now