summaryrefslogtreecommitdiffstats
path: root/etc/rc.embedded
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-25 08:08:24 -0300
committerRenato Botelho <renato@netgate.com>2015-08-25 14:49:54 -0300
commit46bc6e545a17e77202aaf01ec0cd8d5a46567525 (patch)
tree32d18dda436ec739c67c489ceb771e8629cd926f /etc/rc.embedded
parent4d9801c2dbd2b3e54a39578ee62b93af66607227 (diff)
downloadpfsense-46bc6e545a17e77202aaf01ec0cd8d5a46567525.zip
pfsense-46bc6e545a17e77202aaf01ec0cd8d5a46567525.tar.gz
Move main pfSense content to src/
Diffstat (limited to 'etc/rc.embedded')
-rwxr-xr-xetc/rc.embedded32
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."
OpenPOWER on IntegriCloud