postinst and prerm scripts, first pass