Changeset 00f1c03


Ignore:
Timestamp:
01/18/14 10:16:58 (8 months ago)
Author:
ericbsd <ericturgeon.bsd@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
07e446b, 4f9718b, 4e8356c
Parents:
a1bc67c3
Message:

Adding GDM autologing code for GhostBSD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-sysinstall/backend/functions-users.sh

    r727410d r00f1c03  
    4444    # Add the auto-login user line 
    4545    sed -i.bak "s/AutoLoginEnable=false/AutoLoginEnable=true/g" ${FSMNT}/usr/local/kde4/share/config/kdm/kdmrc 
    46  
     46  elif [ -a "${INSTALLTYPE}" = "GhostBSD" ] 
     47  then 
     48    if [ -n "${VAL}" ] 
     49    then 
     50      AUTOU="${VAL}" 
     51      # Adding the auto-login user line 
     52      sed -i "" "/default_user/s/ghostbsd/${AUTOU}/g" ${FSMNT}/usr/local/etc/gdm/custom.conf 
     53    else 
     54      # Remmoving the auto-login & ghostbsd user line 
     55      sed -i "" "/AutomaticLoginEnable/s/true/false/g" ${FSMNT}/usr/local/etc/gdm/custom.conf 
     56      ( echo 'g/AutomaticLogin=ghostbsd/d' ; echo 'wq' ) | ex -s ${FSMNT}/etc/rc.conf 
     57    fi 
    4758  fi 
    4859}; 
Note: See TracChangeset for help on using the changeset viewer.