Add disable services functionality

This commit is contained in:
remittor
2023-11-28 14:46:17 +03:00
parent 23f5b83ad4
commit 968d70c0af
4 changed files with 111 additions and 1 deletions

View File

@@ -63,6 +63,12 @@ get_cfg_expkg_url() {
echo "$k"
}
get_cfg_dis_svc_lst() {
local cfg=$1
local k=$( grep -o -P '(?<=^#DISABLED_SVC=).*' "$cfg" 2> /dev/null )
echo "$k"
}
get_cfg_board() {
local cfg=$1
local k=$( grep -o -P "(?<=^CONFIG_TARGET_)[a-z0-9]+(?==y)" "$cfg" 2> /dev/null )