diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-25 08:08:24 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-25 14:49:54 -0300 |
commit | 46bc6e545a17e77202aaf01ec0cd8d5a46567525 (patch) | |
tree | 32d18dda436ec739c67c489ceb771e8629cd926f /etc/rc.embedded | |
parent | 4d9801c2dbd2b3e54a39578ee62b93af66607227 (diff) | |
download | pfsense-46bc6e545a17e77202aaf01ec0cd8d5a46567525.zip pfsense-46bc6e545a17e77202aaf01ec0cd8d5a46567525.tar.gz |
Move main pfSense content to src/
Diffstat (limited to 'etc/rc.embedded')
-rwxr-xr-x | etc/rc.embedded | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/etc/rc.embedded b/etc/rc.embedded deleted file mode 100755 index 663822d..0000000 --- a/etc/rc.embedded +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# -# rc.embedded - embedded system specific startup information -# For pfSense - -# 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 [ ! -z ${USE_MFS_TMP_SIZE} ] && [ ${USE_MFS_TMP_SIZE} -gt 0 ]; then - tmpsize="${USE_MFS_TMP_SIZE}m" -else - tmpsize="40m" -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 [ ! -z ${USE_MFS_VAR_SIZE} ] && [ ${USE_MFS_VAR_SIZE} -gt 0 ]; then - varsize="${USE_MFS_VAR_SIZE}m" -else - varsize="60m" -fi - -echo -n "Setting up memory disks..." -mdmfs -S -M -s ${tmpsize} md /tmp -mdmfs -S -M -s ${varsize} md /var - -# Create some needed directories -/bin/mkdir -p /var/db /var/spool/lock -/usr/sbin/chown uucp:dialer /var/spool/lock - -# Ensure vi's recover directory is present -/bin/mkdir -p /var/tmp/vi.recover/ -echo " done." |