Duh, test it

This commit is contained in:
Roy Marples 2007-07-27 06:22:05 +00:00
parent f678660f04
commit 380b7f917d

View File

@ -134,7 +134,8 @@ stop() {
# Reset pam_console permissions if we are actually using it
if [ -x /sbin/pam_console_apply ] && ! [ -c /dev/.devfsd ] ; then
if grep -v -e '^[[:space:]]*#' /etc/pam.d/* | grep -q 'pam_console.so' ; then
/sbin/pam_console_apply -r
/sbin/pam_console_apply -r
fi
fi
# Write a halt record if we're shutting down