DEV Community

project-laguardia
project-laguardia

Posted on

LuCI on MGMT - Day 6

Hurdle 5: Identifying Any /etc/config Interop

Previously:

function Find-InSource {
    param(
        [string] $Pattern,
        [string] $Repository = ".\luci",
        [string[]] $Extensions = @(
            ".lua",
            ".c",
            ".js",
            ".mjs"
        ),
        [switch] $Verbose
    )

    # ...
}

& { # Search for `uci` in the source code
    $hits = Find-InSource -Pattern '(?<!l)uci' -Verbose
    $hits | ConvertTo-Json -Depth 5 | Out-File "porting/searches/uci/hits.json" -Encoding UTF8
    $hits.Keys | Out-File "porting/searches/uci/hits.txt" -Encoding UTF8
}

Task 1: Reviewing Search Results

Some new searches have been added to porting/~search.ps1. /etc/config interop search is saved to porting/searches/config/etc.hits.*

Only noteable hit was:

Hurdle 6: Identifying Any luci.config interop

Task 1: Reviewing Search Results

This search has also been added to porting/~search.ps1. The results are saved to porting/searches/module.hits.*

A few noteable hits:

Today's load will be light, as yesterday's took quite a bit of time to go through. Tomorrow, we will be backstepping as we missed reviewing search results within ucode files.

Top comments (0)