Skip to content
Snippets Groups Projects
  • Jo-Philipp Wich's avatar
    b98f78b1
    base-files: rework config generation logic · b98f78b1
    Jo-Philipp Wich authored
    
    Now that config_generate is able to generate the entire /etc/config/system
    from scratch we can apply the same logic as used for /etc/config/network;
    when the configuration file exists already then do not do anything, else
    generate it from the values provided by /etc/board.json .
    
    In order to facilitate that move the file existance checking inside
    /bin/config_generate and call it unconditionally from /bin/board_detect.
    
    Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
    b98f78b1
    History
    base-files: rework config generation logic
    Jo-Philipp Wich authored
    
    Now that config_generate is able to generate the entire /etc/config/system
    from scratch we can apply the same logic as used for /etc/config/network;
    when the configuration file exists already then do not do anything, else
    generate it from the values provided by /etc/board.json .
    
    In order to facilitate that move the file existance checking inside
    /bin/config_generate and call it unconditionally from /bin/board_detect.
    
    Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>