/[baselayout]/trunk/init.d/bootmisc
Gentoo

Diff of /trunk/init.d/bootmisc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2793 Revision 2794
51 51
52 # Clean up any stale locks. 52 # Clean up any stale locks.
53 find /var/lock -type f -print0 | xargs -0 rm -f -- 53 find /var/lock -type f -print0 | xargs -0 rm -f --
54 54
55 # Clean up /var/run and create /var/run/utmp so we can login. 55 # Clean up /var/run and create /var/run/utmp so we can login.
56 for x in $(find /var/run ! -type d ! -name utmp ! -name innd.pid ! -name random-seed ! -name ld-elf.so.hints); do 56 for x in $(find /var/run ! -type d ! -name utmp ! -name innd.pid \
57 ! -name random-seed ! -name ld-elf.so.hints ! -name ld.so.hints); do
57 [ ! -f "${x}" ] && continue 58 [ ! -f "${x}" ] && continue
58 # Do not remove pidfiles of already running daemons 59 # Do not remove pidfiles of already running daemons
59 case "${x}" in 60 case "${x}" in
60 *.pid) 61 *.pid)
61 start-stop-daemon --test --quiet --stop --pidfile "${x}" 62 start-stop-daemon --test --quiet --stop --pidfile "${x}"
64 esac 65 esac
65 rm -f "${x}" 66 rm -f "${x}"
66 done 67 done
67 68
68 # Reset pam_console permissions if we are actually using it 69 # Reset pam_console permissions if we are actually using it
69 if [ -x /sbin/pam_console_apply -a ! -c /dev/.devfsd ] ; then 70 if [ -x /sbin/pam_console_apply ] && ! [ -c /dev/.devfsd ] ; then
70 if [ -n $(grep -v -e '^[[:space:]]*#' /etc/pam.d/* | grep 'pam_console') ] ; then 71 if grep -v -e '^[[:space:]]*#' /etc/pam.d/* | grep -q 'pam_console.so' ; then
71 /sbin/pam_console_apply -r 72 pam_console_apply -r
72 fi 73 fi
73 fi 74 fi
74 75
75 # Create the .keep to stop portage from removing /var/lock 76 # Create the .keep to stop portage from removing /var/lock
76 printf "" >/var/lock/.keep 77 printf "" >/var/lock/.keep

Legend:
Removed from v.2793  
changed lines
  Added in v.2794

  ViewVC Help
Powered by ViewVC 1.1.20