diff options
author | Jim P <jim@pingle.org> | 2013-03-13 12:00:20 -0700 |
---|---|---|
committer | Jim P <jim@pingle.org> | 2013-03-13 12:00:20 -0700 |
commit | 016f245986354b5668a29c8342eaaac59f5610c5 (patch) | |
tree | e8a84515388bed9323a059146e77f38597630f6e /etc | |
parent | 7d88b4269f01f2282a05df3e671da3f71704d17b (diff) | |
parent | 8ad8b0449d8893b486701b7fa1241258d0fd903c (diff) | |
download | pfsense-016f245986354b5668a29c8342eaaac59f5610c5.zip pfsense-016f245986354b5668a29c8342eaaac59f5610c5.tar.gz |
Merge pull request #481 from phil-davis/master
Enhance tmp and var size checks
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.embedded | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.embedded b/etc/rc.embedded index 426495f..b4c60fb 100755 --- a/etc/rc.embedded +++ b/etc/rc.embedded @@ -5,7 +5,7 @@ # Size of /tmp USE_MFS_TMP_SIZE=`/usr/bin/grep use_mfs_tmp_size /cf/conf/config.xml | /usr/bin/cut -f2 -d'>' | /usr/bin/cut -f1 -d'<'` -if [ ${USE_MFS_TMP_SIZE} -gt 0 ]; then +if [ ! -z ${USE_MFS_TMP_SIZE} ] && [ ${USE_MFS_TMP_SIZE} -gt 0 ]; then tmpsize="${USE_MFS_TMP_SIZE}m" else tmpsize="40m" @@ -13,7 +13,7 @@ fi # Size of /var USE_MFS_VAR_SIZE=`/usr/bin/grep use_mfs_var_size /cf/conf/config.xml | /usr/bin/cut -f2 -d'>' | /usr/bin/cut -f1 -d'<'` -if [ ${USE_MFS_VAR_SIZE} -gt 0 ]; then +if [ ! -z ${USE_MFS_VAR_SIZE} ] && [ ${USE_MFS_VAR_SIZE} -gt 0 ]; then varsize="${USE_MFS_VAR_SIZE}m" else varsize="60m" @@ -31,4 +31,4 @@ mdmfs -S -M -s ${varsize} md /var # Ensure vi's recover directory is present /bin/mkdir -p /var/tmp/vi.recover/ -echo " done."
\ No newline at end of file +echo " done." |