postinstall.sh: rewrite