Move script part in preinst to postinst because it requires vdr to be installed and configured