These commands are inserted into the maintainer scripts by dh_installdeb.
See L<dh_installdeb(1)> for an explanation of how this works.
+Previous versions of dh_installmodules installed files named
+etc/modprobe.d/package, code is added to the preinst and postinst to
+handle the upgrade from the old location.
+
Previous versions of dh_installmodules also supported
files named debian/package.modules, which were installed into
etc/modutils/package in the package build directory. This was for use by