Explorar o código

dracut/display-manager-autologin.sh: if enlightenment and lxdm are installed, autostart it.

Juan RP %!s(int64=11) %!d(string=hai) anos
pai
achega
c121f9ea1e
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      dracut/display-manager-autologin.sh

+ 4 - 2
dracut/display-manager-autologin.sh

@@ -31,6 +31,8 @@ fi
 
 # Configure lxdm autologin.
 if [ -r ${NEWROOT}/etc/lxdm/lxdm.conf ]; then
-    sed -i -e "s|^\#\# \(autologin=\).*|\1$USERNAME|" \
-        ${NEWROOT}/etc/lxdm/lxdm.conf
+    sed -e "s,.*autologin.*=.*,autologin=$USERNAME," -i ${NEWROOT}/etc/lxdm/lxdm.conf
+    if [ -x ${NEWROOT}/usr/bin/enlightenment_start ]; then
+        sed -e "s,.*session.*=.*,session=/usr/bin/enlightenment_start," -i ${NEWROOT}/etc/lxdm/lxdm.conf
+    fi
 fi