Dynamic Root Disk A.3.12.* Administrator's Guide

stop)
# Synchronize the source disk with the cloned system
drd mount >/dev/null 2>&1 # Ignore errors, may already be mounted.
drd sync
sync_ret=$?
set_return $sync_ret "ERROR: Return code from drd sync is $sync_ret"
rm -f $0 ${DRD_MOUNT_PT}$0 > /dev/null 2>&1
[[ -x $0 ]] && \
set_return 1 "ERROR: The $0 script (on image being shut down) could not be removed."
[[ -x ${DRD_MOUNT_PT}$0 ]] && \
set_return 1 "ERROR: The ${DRD_MOUNT_PT}$0 script ($0 on clone) could not be removed."
drd umount >/dev/null 2>&1 # Ignore errors.
;;
*)
echo "usage: $0 { stop_msg | stop }"
rval=1
;;
esac
exit $rval
drd sync system shutdown script 29