load system serives array for livecd configuration
This commit is contained in:
parent
35ef69b778
commit
c6105c19e7
3 changed files with 15 additions and 1 deletions
|
@ -56,6 +56,8 @@ display_settings(){
|
|||
msg2 "addgroups: ${addgroups}"
|
||||
msg2 "hostname: ${hostname}"
|
||||
msg2 "pacman_mirrors: ${mirrors_conf}"
|
||||
msg2 "startservices_systemd: ${startservices_systemd[*]}"
|
||||
msg2 "startservices_openrc: ${startservices_openrc[*]}"
|
||||
|
||||
msg "ISOFILE:"
|
||||
msg2 "iso_file: ${iso_file}"
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
# addgroups="video,audio,power,disk,storage,optical,network,lp,scanner"
|
||||
|
||||
# unset defaults to given values, unused
|
||||
# startservices_systemd=('cupsd' 'tlp-sleep' 'tlp' )
|
||||
# startservices_systemd=('cupsd' 'tlp-sleep' 'tlp')
|
||||
|
||||
# unset defaults to given values, unused
|
||||
# startservices_openrc=('cupsd' 'fcron' 'metalog')
|
||||
|
|
12
lib/util.sh
12
lib/util.sh
|
@ -330,6 +330,18 @@ load_config(){
|
|||
addgroups="video,audio,power,disk,storage,optical,network,lp,scanner"
|
||||
fi
|
||||
|
||||
if [[ -n ${startservices_systemd} ]];then
|
||||
startservices_systemd=${startservices_systemd}
|
||||
else
|
||||
startservices_systemd=('cupsd' 'tlp-sleep' 'tlp')
|
||||
fi
|
||||
|
||||
if [[ -n ${startservices_openrc} ]];then
|
||||
startservices_openrc=${startservices_openrc}
|
||||
else
|
||||
startservices_openrc=('cupsd' 'fcron' 'metalog')
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue