sudo -i

for f in /etc.defaults/synoinfo.conf /etc/synoinfo.conf; do
    sed -i '/nvme_force_show=/d' "$f"
    sed -i '/nvme_disks=/d' "$f"
    sed -i '/support_nvme_disk_compatibility=/d' "$f"
    sed -i '/support_disk_compatibility=/d' "$f"

    echo 'nvme_force_show="yes"' >> "$f"
    echo 'nvme_disks="nvme0n1,nvme1n1,nvme2n1,nvme3n1"' >> "$f"
    echo 'support_nvme_disk_compatibility="no"' >> "$f"
    echo 'support_disk_compatibility="no"' >> "$f"
done
