diff options
Diffstat (limited to 'src/etc/rc.reboot')
-rwxr-xr-x | src/etc/rc.reboot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/rc.reboot b/src/etc/rc.reboot index 3b77520..1dae0d2 100755 --- a/src/etc/rc.reboot +++ b/src/etc/rc.reboot @@ -28,11 +28,11 @@ if [ "$PLATFORM" = "${product}" ]; then rm -rf /tmp/* 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 |