Re: How to package device files?
On Thu, May 30, 2002 at 11:33:16AM -0500, Grant Edwards wrote:
> I'm working on a package that contains character device files
> among the files to be installed. When I look at the contents
> of the .deb file, they're shown correctly. After installing
> the package, the device files have been created as normal
> (empty) files.
> How do I get the install process to install the files as they
> exist in the package file?
Create them in the postinst, after asking the user for permission. See
Packages must not include device files in the package file tree.
If a package needs any special device files that are not included in
the base system, it must call MAKEDEV in the postinst script, after
asking the user for permission to do so.
Packages must not remove any device files in the postrm or any other
script. This is left to the system administrator.
Colin Watson [email@example.com]
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com