summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/rc.shutdown')
-rwxr-xr-xsrc/etc/rc.shutdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/rc.shutdown b/src/etc/rc.shutdown
index bf79683..55133f0 100755
--- a/src/etc/rc.shutdown
+++ b/src/etc/rc.shutdown
@@ -37,11 +37,11 @@ if [ "$PLATFORM" = "${product}" ]; then
find -x /tmp/* -type f -exec rm -f {} \; >/dev/null 2>&1
fi
-USE_MFS_TMPVAR=`/usr/bin/grep -c use_mfs_tmpvar /cf/conf/config.xml`
+USE_MFS_TMPVAR=$(/usr/local/sbin/read_xml_tag.sh boolean system/use_mfs_tmpvar)
DISK_NAME=`/bin/df /var/db/rrd | /usr/bin/tail -1 | /usr/bin/awk '{print $1;}'`
DISK_TYPE=`/usr/bin/basename ${DISK_NAME} | /usr/bin/cut -c1-2`
# If we are not on a full install, or if the full install wants RAM disks, or if the full install _was_ using RAM disks, but isn't for the next boot...
-if [ "${PLATFORM}" != "${product}" ] || [ ${USE_MFS_TMPVAR} -gt 0 ] || [ "${DISK_TYPE}" = "md" ]; then
+if [ "${PLATFORM}" != "${product}" ] || [ "${USE_MFS_TMPVAR}" = "true" ] || [ "${DISK_TYPE}" = "md" ]; then
/etc/rc.backup_rrd.sh
/etc/rc.backup_dhcpleases.sh
fi
OpenPOWER on IntegriCloud