[scripts] drop any /etc/conf.d references

This commit is contained in:
Fabio Erculiani
2014-04-03 17:35:19 +02:00
parent 0231bfe796
commit fd0139151f
3 changed files with 0 additions and 11 deletions

View File

@@ -95,19 +95,14 @@ switch_kernel() {
setup_displaymanager() {
# determine what is the login manager
if [ -n "$(equo match --installed gnome-base/gdm -qv)" ]; then
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="gdm"/g' /etc/conf.d/xdm
sd_enable gdm
elif [ -n "$(equo match --installed lxde-base/lxdm -qv)" ]; then
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="lxdm"/g' /etc/conf.d/xdm
sd_enable lxdm
elif [ -n "$(equo match --installed x11-misc/lightdm-base -qv)" ]; then
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="lightdm"/g' /etc/conf.d/xdm
sd_enable lightdm
elif [ -n "$(equo match --installed kde-base/kdm -qv)" ]; then
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="kdm"/g' /etc/conf.d/xdm
sd_enable kdm
else
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="xdm"/g' /etc/conf.d/xdm
sd_enable xdm
fi
}