Changeset c8639a2


Ignore:
Timestamp:
12/16/13 11:09:56 (13 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
4f9718b
Parents:
df413956
Message:

Fix a bug with pcdm startup causing it to fail, badly, when fastboot
is disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/rc.d/pcdm

    r1620346 rc8639a2  
    22 
    33# PROVIDE: pcdm 
    4 # REQUIRE: LOGIN cleanvar moused syscons 
     4# REQUIRE: LOGIN cleanvar moused syscons dbus 
    55# 
    66# Add the following to /etc/rc.conf to start PCDM at boot time: 
     
    2424pcdm_start() 
    2525{ 
     26  if ! checkyesno pcdm_enable ; then 
     27     return 0 
     28  fi 
     29  echo "Starting PCDM." 
     30 
    2631  ( 
    27     if ! checkyesno pcdm_enable ; then 
    28         return 0 
    29     fi 
    30     echo "Starting PCDM." 
     32    iter=0 
     33    while ! ps -axoargs | grep "^/usr/libexec/getty " | grep -qv grep >/dev/null 2>&1; do 
     34        if [ ${iter} -eq 60 ]; then 
     35            break 
     36        fi 
     37        sleep 1 
     38        iter=$(expr ${iter} + 1) 
     39    done 
     40    iter=0 
     41    while ! /usr/local/bin/lshal >/dev/null 2>&1 ; do 
     42        if [ ${iter} -eq 60 ]; then 
     43            break 
     44        fi 
     45        sleep 1 
     46        iter=$(expr ${iter} + 1) 
     47    done 
    3148 
    3249    #Start the PCDM login daemon 
Note: See TracChangeset for help on using the changeset viewer.