#!/bin/sh set -e ## Source debconf library. . /usr/share/debconf/confmodule [ ! -e /etc/multipath.conf ] && cp /etc/mpath.conf.lliurex /etc/multipath.conf 2>/dev/null [ ! -e /etc/ocfs2/cluster.conf ] && cp /etc/ocfs2/cluster.lliurex /etc/ocfs2/cluster.conf 2>/dev/null n4d-vars setvalue OCFS2_NET_EXPORT_DIRS "mirror server-sync" if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then db_get ocfs2-tools/init O2CB_ENABLED="$RET" db_get ocfs2-tools/clustername O2CB_BOOTCLUSTER="$RET" db_get ocfs2-tools/heartbeat_threshold O2CB_HEARTBEAT_THRESHOLD="$RET" db_get ocfs2-tools/idle_timeout O2CB_IDLE_TIMEOUT_MS="$RET" db_get ocfs2-tools/keepalive_delay O2CB_KEEPALIVE_DELAY_MS="$RET" db_get ocfs2-tools/reconnect_delay O2CB_RECONNECT_DELAY_MS="$RET" cat > /etc/default/o2cb <