diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-01-11 18:00:29 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-01-11 18:00:29 +0000 |
commit | 9daeb964853d3251c3304cb6dfbc05bda843987a (patch) | |
tree | c9ba1d31e876311dd901e94a11ec9f5f51a48740 | |
parent | 60b7af167da0818624180dd02dbb55f73e026b55 (diff) | |
download | pfsense-9daeb964853d3251c3304cb6dfbc05bda843987a.zip pfsense-9daeb964853d3251c3304cb6dfbc05bda843987a.tar.gz |
Automatically assume the embedded platform on update if the platform
is set to embedded or wrap. We do not include any kernels outside
of embedded anyways for this paticular platform.
-rwxr-xr-x | etc/rc.initial.firmware_update | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/rc.initial.firmware_update b/etc/rc.initial.firmware_update index a3d5a29..78cca04 100755 --- a/etc/rc.initial.firmware_update +++ b/etc/rc.initial.firmware_update @@ -112,6 +112,14 @@ switch ($command) { function check_for_kernel_file() { global $fp; + $platform = file_get_contents("/etc/platform"); + $platform = str_replace("\n", "", $platform); + $platform = str_replace("\r", "", $platform); + if($platform == "embedded" or $platform == "wrap") { + exec("echo wrap > /boot/kernel/pfsense_kernel.txt"); + echo "\n"; + return; + } if(!file_exists("/boot/kernel/pfsense_kernel.txt")) { echo "\nPlease select which kernel you would like to use:\n"; echo "\n1. Non SMP kernel"; |