fi
}
-text -x /etc/rc.local.shutdown && /etc/rc.local.shutdown
+test -x /etc/rc.local.shutdown && /etc/rc.local.shutdown
reverse() {
local rev
# write to wtmp
halt -w
-if [ is_true "$USELVM" ] && [ -x /sbin/vgchange ]; then
+if is_true "$USELVM" && [ -x /sbin/vgchange ]; then
status_begin "Deactivating monitoring of LVM2 groups"
/sbin/vgchange --monitor n
status_check
fi
-if [ -x /sbin/udevadm ]; then
+if [ -x /sbin/udevadm ] && is_true "$USE_UDEV" ; then
status_begin "Shutting down udev"
/sbin/udevadm control --exit
status_check
status_check
status_begin "Unmounting non-API filesystems"
-umount -a
+umount -a -t nodevtmpfs
status_check
status_begin "Remounting root filesystem read-only"