mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
MFC 11520
Save the RRD files! MFC: Soon, testing with hoba now. Tickets:
This commit is contained in:
parent
acdd8ddfac
commit
f921cfbb38
@ -9,5 +9,17 @@ fi
|
||||
|
||||
sleep 1
|
||||
|
||||
# If PLATFORM is pfSense then remove
|
||||
# temporary files on shutdown from /tmp/
|
||||
PLATFORM=`cat /etc/platform`
|
||||
if [ "$PLATFORM" = "pfSense" ]; then
|
||||
rm -rf /tmp/*
|
||||
else
|
||||
# Save the rrd databases to the config path.
|
||||
tar -czf /cf/conf/rrd.tgz /var/db/rrd/*.rrd
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
||||
/sbin/shutdown -r now
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user