X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=scripts%2Frc.shutdown;h=8f324e4e81768c3675bb2549a3d578c6a76c7757;hb=HEAD;hp=83b9d52b81186ec40121d5d531bb895ecd112783;hpb=54587047a1fdd4abd6a4ba23a920f8116fce2e72;p=startuptools diff --git a/scripts/rc.shutdown b/scripts/rc.shutdown index 83b9d52..8f324e4 100644 --- a/scripts/rc.shutdown +++ b/scripts/rc.shutdown @@ -36,7 +36,7 @@ kill_all() { fi } -text -x /etc/rc.local.shutdown && /etc/rc.local.shutdown +test -x /etc/rc.local.shutdown && /etc/rc.local.shutdown reverse() { local rev @@ -55,13 +55,13 @@ done # 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 @@ -78,7 +78,7 @@ swapoff -a status_check status_begin "Unmounting non-API filesystems" -umount -a +umount -a -t nodevtmpfs status_check status_begin "Remounting root filesystem read-only"