Duh, test it
This commit is contained in:
parent
f678660f04
commit
380b7f917d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user