hnetd: improve postinst logic