diff options
author | Scott Ullrich <sullrich@pfsense-org.local> | 2009-08-24 15:33:54 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense-org.local> | 2009-08-24 15:33:54 -0400 |
commit | fdd20aba301dbcae0c4fb3441d347eb3b3f6b93f (patch) | |
tree | 996b523d09bd71e775f1d91bdf04e978c3e2e24e /etc/inc | |
parent | f5a57bb0067db75cc311332d3f5b09cfbd60b57b (diff) | |
download | pfsense-fdd20aba301dbcae0c4fb3441d347eb3b3f6b93f.zip pfsense-fdd20aba301dbcae0c4fb3441d347eb3b3f6b93f.tar.gz |
Only blast rrd upgrade notice to wall once
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/rrd.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc index 78f42c6..721316e 100644 --- a/etc/inc/rrd.inc +++ b/etc/inc/rrd.inc @@ -55,7 +55,10 @@ function create_new_rrd($rrdcreatecmd) { } function migrate_rrd_format($rrdoldxml, $rrdnewxml) { - exec("echo 'Converting RRD configuration to new format. This might take a bit...' | wall"); + if(!file_exists("/tmp/rrd_notice_sent.txt")) { + exec("echo 'Converting RRD configuration to new format. This might take a bit...' | wall"); + touch("/tmp/rrd_notice_sent.txt"); + } $numrraold = count($rrdoldxml['rra']); $numdsold = count($rrdoldxml['ds']); $numrranew = count($rrdnewxml['rra']); |