diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-01-11 18:00:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-01-11 18:00:37 +0000 |
commit | 4394fafc35a0316ca6bb1a93ab194041a19bf577 (patch) | |
tree | ad518dca3c87fc8a4ccd4856e3cca4d2283c3392 /etc | |
parent | 2ebbc642701f82b24ef7d81b40fe6b0a0357c5a3 (diff) | |
download | pfsense-4394fafc35a0316ca6bb1a93ab194041a19bf577.zip pfsense-4394fafc35a0316ca6bb1a93ab194041a19bf577.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.
Diffstat (limited to 'etc')
-rw-r--r-- | 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 2ae98fb..19278fb 100644 --- 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"; |