File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 3030#include " sysutil_config.h"
3131#include " sysutil_part.h"
3232#include " sysutil_platform.h"
33+ #include " sysutil_settings.h"
3334#include " sysutil_status.h"
3435
3536namespace sysutil {
@@ -99,6 +100,8 @@ void run_firstboot_tasks() {
99100 if (resize_partition_firstboot ()) {
100101 needs_reboot = true ;
101102 }
103+ mount_known_partitions ();
104+ sync_settings_from_files ();
102105 if (apply_camera_config_if_needed ()) {
103106 needs_reboot = true ;
104107 }
Original file line number Diff line number Diff line change @@ -174,15 +174,6 @@ void sync_settings_from_files() {
174174 changed = true ;
175175 }
176176
177- if (file_exists (" /Config/camera1.txt" )) {
178- const auto value = read_int_file (" /Config/camera1.txt" );
179- if (value.has_value ()) {
180- config.camera_type = value;
181- changed = true ;
182- }
183- remove_file_if_exists (" /Config/camera1.txt" );
184- }
185-
186177 const bool has_record = file_exists (kRecordFile );
187178 const bool has_air = file_exists (kAirFile );
188179 const bool has_ground = file_exists (kGroundFile );
You can’t perform that action at this time.
0 commit comments