[+] Check scripts with shellcheck and semgrep

This module tries to identify shell scripts and analyses them with shellcheck - https://www.shellcheck.net/.


==> Check scripts with shellcheck

[+] Found 2 issues in script (common linux file: no): /etc/init.d/S00nanddisk (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /etc/init.d/S40network (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /etc/init.d/S30dbus (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /etc/init.d/S50lighttpd (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): /etc/init.d/rcK (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: yes): /etc/init.d/rcS (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): /etc/network/if-pre-up.d/wait_iface (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /root/S49ntp (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/share/udhcpc/default.script (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): /usr/bin/wolfssl-config (-rw-r--r-- root root)


==> Summary of shell issues (shellcheck)

[+] Found 20 issues in 23 shell scripts


    [+] SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
    [+] SC2086 (info): Double quote to prevent globbing and word splitting.
    [+] SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.
    [+] SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
    [+] SC2046 (warning): Quote this to prevent word splitting.
    [+] SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
    [+] SC2320 (warning): This $? refers to echo/printf, not a previous command. Assign to variable to avoid it being overwritten.
    [+] SC3010 (warning): In POSIX sh, [[ ]] is undefined.

==> Check scripts with semgrep



==> Summary of shell issues (semgrep)



==> Check shell scripts for eval usage

[+] Found eval usage in wolfssl-config