forked from mirrored-repos/manjaro-tools
[util-iso-image] support openrc for sddm
This commit is contained in:
parent
4f025776a8
commit
d9bcf05fe3
1 changed files with 7 additions and 0 deletions
|
@ -252,6 +252,13 @@ configure_displaymanager(){
|
|||
if [[ ${default_desktop_executable} != "none" ]] && [[ ${default_desktop_file} != "none" ]]; then
|
||||
sed -i -e "s|^Session=.*|Session=$default_desktop_file.desktop|" ${conf}
|
||||
fi
|
||||
if [[ ${initsys} == 'openrc' ]];then
|
||||
local halt='/usr/bin/shutdown -h -P now' \
|
||||
reboot='/usr/bin/shutdown -r now'
|
||||
sed -e "s|^.*HaltCommand=.*|HaltCommand=${halt}|" \
|
||||
-e "s|^.*RebootCommand=.*|RebootCommand=${reboot}|" \
|
||||
-i ${conf}
|
||||
fi
|
||||
;;
|
||||
'lxdm')
|
||||
local conf=$1/etc/lxdm/lxdm.conf
|
||||
|
|
Loading…
Reference in a new issue