registering kernel modules.
Kernel modules are searched for in the package build directory and if
-found, F<postinst> and F<postrm> commands are automatically generated to
+found, F<preinst>, F<postinst> and F<postrm> commands are automatically generated to
run B<depmod> and register the modules when the package is installed.
These commands are inserted into the maintainer scripts by
L<dh_installdeb(1)>.
=item B<-n>, B<--noscripts>
-Do not modify F<postinst>/F<postrm> scripts.
+Do not modify F<preinst>/F<postinst>/F<postrm> scripts.
=item B<--name=>I<name>
=item B<-n>, B<--noscripts>
-Do not modify F<postinst>/F<postrm> scripts.
+Do not modify F<preinst>/F<postinst> scripts.
=back
=head1 DESCRIPTION
B<dh_installwm> is a debhelper program that is responsible for
-generating the F<postinst> and F<postrm> commands that register a window manager
+generating the F<postinst> and F<prerm> commands that register a window manager
with L<update-alternatives(8)>. The window manager's man page is also
registered as a slave symlink (in v6 mode and up), if it is found in
F<usr/share/man/man1/> in the package build directory.
=item B<-n>, B<--noscripts>
-Do not modify F<postinst>/F<postrm> scripts. Turns this command into a no-op.
+Do not modify F<postinst>/F<prerm> scripts. Turns this command into a no-op.
=item I<wm> ...
=item B<-n>, B<--noscripts>
-Do not modify F<postinst>/F<postrm> scripts.
+Do not modify F<postinst>/F<prerm> scripts.
=back