Add openrc support to manually installing

displaymanager
merge-requests/273/head
Chrysostomus 7 years ago
parent b6c4275d58
commit 3bc2584106

18
aif

@ -2372,11 +2372,19 @@ install_dm() {
# Save repetition of code # Save repetition of code
enable_dm() { enable_dm() {
# Add openrc support. If openrcbase was installed, the file /tmp/.openrc should exist. if [[ -e /tmp/.openrc ]]; then
arch_chroot "systemctl enable $(cat ${PACKAGES})" 2>/tmp/.errlog sed -i "s/$(grep "DISPLAYMANAGER=" /mnt/etc/conf.d/xdm)/DISPLAYMANAGER=\"$(cat ${PACKAGES})\"/g" /mnt/etc/conf.d/xdm
check_for_error arch_chroot "rc-update add xdm default" 2>/tmp/.errlog
DM=$(cat ${PACKAGES}) check_for_error
DM_ENABLED=1 DM=$(cat ${PACKAGES})
DM_ENABLED=1
else
# enable display manager for systemd
arch_chroot "systemctl enable $(cat ${PACKAGES})" 2>/tmp/.errlog
check_for_error
DM=$(cat ${PACKAGES})
DM_ENABLED=1
fi
} }
if [[ $DM_ENABLED -eq 0 ]]; then if [[ $DM_ENABLED -eq 0 ]]; then

Loading…
Cancel
Save