V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -82,14 +82,21 @@ grep_nic_driver_modules() {
|
||||
# 0: on success
|
||||
#######################################
|
||||
insert_comments() {
|
||||
declare file="${1}"
|
||||
declare of_file="${1}" var_name=""
|
||||
|
||||
case "${of_file}" in
|
||||
/target/*) var_name="${of_file#/target}" ;;
|
||||
/recovery/*) var_name="${of_file#/recovery}" ;;
|
||||
*) var_name="${of_file}" ;;
|
||||
esac
|
||||
|
||||
sed -i '/^# SPDX-Security-Contact: security@coresecret\.eu$/a\
|
||||
\
|
||||
# Static file system information: '"${file}"'\
|
||||
# Static file system information: '"${var_name}"'\
|
||||
# Generated by CISS.debian.installer '"${VAR_VERSION}"'\
|
||||
# Architecture: '"${VAR_ARCHITECTURE}"'\
|
||||
# Distribution: '"${VAR_CODENAME}"'
|
||||
' "${file}"
|
||||
' "${of_file}"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user