#!/bin/sh

# This script removes the NFINIDAT entries from the ODM.

echo "Cleaning up Infinidat entries from the ODM ..."

odmdelete -o PdAt -q"uniquetype=disk/fcp/NFINIDAT"
odmdelete -o PdAt -q"uniquetype=PCM/friend/NFINIDATpcm"
odmdelete -o PdAt -q"uniquetype=dac/fcp/NFINIDATctrl"

odmdelete -o PdPathAt -q"uniquetype=disk/fcp/NFINIDAT"
odmdelete -o PdPathAt -q"uniquetype=PCM/friend/NFINIDATpcm"
odmdelete -o PdPathAt -q"uniquetype=dac/fcp/NFINIDATctrl"
odmdelete -o PdPathAt -q"uniquetype=disk/fcp/NFINIDATctrl"

odmdelete -o PdDv -q"type=NFINIDAT"
odmdelete -o PdDv -q"type=NFINIDATpcm"
odmdelete -o PdDv -q"type=NFINIDATctrl"

# legacy, should not be in new ODM files
odmdelete -o PdAt -q"uniquetype=PCM/friend/NFINIDAT"
odmdelete -o PdPathAt -q"uniquetype=PCM/friend/NFINIDAT"
