summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-04-14 13:06:13 +0000
committerErmal <eri@pfsense.org>2014-04-14 13:06:28 +0000
commite61f548f2ca406d1e89af2675d1dbe80e20a24fc (patch)
tree2a94738d0983ff928bbf013a4221e5a3114522c8
parent115b7b81835df0aaf37f305042382911dd719245 (diff)
downloadpfsense-e61f548f2ca406d1e89af2675d1dbe80e20a24fc.zip
pfsense-e61f548f2ca406d1e89af2675d1dbe80e20a24fc.tar.gz
Get rid of embedded platform. Its time to GC this
-rw-r--r--etc/inc/config.lib.inc2
-rw-r--r--etc/inc/pkg-utils.inc2
-rw-r--r--etc/phpshellsessions/gitsync2
-rwxr-xr-xetc/rc15
-rwxr-xr-xetc/rc.php_ini_setup2
-rwxr-xr-xtmp/post_upgrade_command.php2
-rwxr-xr-xusr/local/bin/beep.sh5
7 files changed, 6 insertions, 24 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index a515e1b..951362f 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -911,7 +911,7 @@ function get_config_backup_count() {
global $config, $g;
if (isset($config['system']['backupcount']) && is_numeric($config['system']['backupcount']) && ($config['system']['backupcount'] >= 0)) {
return intval($config['system']['backupcount']);
- } elseif ($g['platform'] == "embedded" or $g['platform'] == "nanobsd") {
+ } elseif ($g['platform'] == "nanobsd") {
return 5;
} else {
return 30;
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index d075bab..5a2dfc1 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -501,7 +501,7 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url =
$pkgs = explode(" ", $filename);
foreach($pkgs as $filename) {
$filename = trim($filename);
- if (($g['platform'] == "nanobsd") || ($g['platform'] == "embedded")) {
+ if ($g['platform'] == "nanobsd") {
$pkgtmpdir = "/usr/bin/env PKG_TMPDIR=/root/ ";
$pkgstagingdir = "/root/tmp";
if (!is_dir($pkgstagingdir))
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync
index 775eb5e..17f9b09 100644
--- a/etc/phpshellsessions/gitsync
+++ b/etc/phpshellsessions/gitsync
@@ -90,7 +90,7 @@ if(!file_exists($GIT_BIN)) {
if (empty($pkg_info["git"])) {
echo "Can't locate git package in pfSense repo. Using FreeBSD pkg repo..";
- if (($g['platform'] == "nanobsd") || ($g['platform'] == "embedded")) {
+ if (($g['platform'] == "nanobsd")) {
$pkgtmpdir = "/usr/bin/env PKG_TMPDIR=/root/ ";
$pkgstagingdir = "/root/tmp";
if (!is_dir($pkgstagingdir))
diff --git a/etc/rc b/etc/rc
index d01b1a9..d3acd79 100755
--- a/etc/rc
+++ b/etc/rc
@@ -84,7 +84,7 @@ else
fi
USE_MFS_TMPVAR=`/usr/bin/grep -c use_mfs_tmpvar /cf/conf/config.xml`
- if [ "${PLATFORM}" = "nanobsd" ] || [ "${PLATFORM}" = "embedded" ] || [ ${USE_MFS_TMPVAR} -gt 0 ]; then
+ if [ "${PLATFORM}" = "nanobsd" ] || [ ${USE_MFS_TMPVAR} -gt 0 ]; then
/etc/rc.embedded
fi
fi
@@ -137,8 +137,6 @@ fi
if [ "$PLATFORM" = "cdrom" ] ; then
# do nothing for cdrom platform
-elif [ "$PLATFORM" = "embedded" ] ; then
- # do nothing for embedded platform
elif [ "$PLATFORM" = "nanobsd" ] || [ ${USE_MFS_TMPVAR} -gt 0 ]; then
# Ensure that old-style PKG packages can be persistent across reboots
/bin/mkdir -p /root/var/db/pkg
@@ -194,12 +192,6 @@ fi
/bin/rm -rf /var/tmp/*
echo -n "Creating symlinks..."
-# Make sure symlink is correct on embedded
-if [ "$PLATFORM" = "embedded" ] ; then
- /bin/rm /conf
- /bin/ln -s /cf/conf/ /conf
-fi
-
# Make sure symlink is correct on nanobsd
if [ "$PLATFORM" = "nanobsd" ] ; then
/bin/rm /conf
@@ -355,11 +347,6 @@ fi
/usr/local/sbin/php-fpm -c /usr/local/lib/php.ini -y /usr/local/lib/php-fpm.conf -RD 2>&1 >/dev/null
# Launch external configuration loader for supported platforms
-if [ "$PLATFORM" = "embedded" ]; then
- /usr/local/sbin/fcgicli -f /etc/ecl.php
-fi
-
-# Launch external configuration loader for supported platforms
if [ "$PLATFORM" = "nanobsd" ]; then
/usr/local/sbin/fcgicli -f /etc/ecl.php
fi
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup
index f434f1e..f726ade 100755
--- a/etc/rc.php_ini_setup
+++ b/etc/rc.php_ini_setup
@@ -81,7 +81,7 @@ else
fi
# Set upload directory
-if [ "$PLATFORM" = "embedded" -o "$PLATFORM" = "nanobsd" ]; then
+if [ "$PLATFORM" = "nanobsd" ]; then
UPLOADTMPDIR=`/usr/bin/grep upload_path /etc/inc/globals.inc | /usr/bin/cut -d'"' -f4`
else
UPLOADTMPDIR="/tmp"
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index 44c5006..5cbc8be 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -17,7 +17,7 @@
if ($argv[1] != "")
$newslicedir = '/tmp/' . $argv[1];
- if($g['platform'] == "embedded" || $g['enableserial_force'] || file_exists("{$newslicedir}/enableserial_force")) {
+ if($g['enableserial_force'] || file_exists("{$newslicedir}/enableserial_force")) {
$config['system']['enableserial'] = true;
write_config();
}
diff --git a/usr/local/bin/beep.sh b/usr/local/bin/beep.sh
index 0158244..29a918c 100755
--- a/usr/local/bin/beep.sh
+++ b/usr/local/bin/beep.sh
@@ -9,11 +9,6 @@ fi
# Standard note length
NOTELENGTH="25"
-# Embedded uses 100HZ
-if [ "$PFSENSETYPE" = "embedded" ]; then
- NOTELENGTH="10"
-fi
-
# this is super annoying in VMware, exit if in VMware
if [ -f /var/log/dmesg.boot ]; then
VMWCOUNT=`/usr/bin/grep -c VMware /var/log/dmesg.boot`
OpenPOWER on IntegriCloud