[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2688: base: wrong group for rft* devices



Package: base
Version: 1.1.0-2

The package installs the following devices with group "disk":

crw-rw----   1 root     disk      27,   0 Jan  1  1970 dev/rft0
crw-rw----   1 root     disk      27,   1 Jan  1  1970 dev/rft1
crw-rw----   1 root     disk      27,   2 Jan  1  1970 dev/rft2
crw-rw----   1 root     disk      27,   3 Jan  1  1970 dev/rft3

These are tape devices (ftape/zftape) and should have the owner "tape".

It would be nice to have the other zftape devices in the base
package as well. Here is a makefile (from the zftape package) to
create them:

#!/usr/bin/make -f
#

FTAPE_MAJOR = 27

#
# the mknod rule really requires bash.  I should change it to
# use the "expr" program one day
#
mknod:
	@echo Creating device-special file in /dev ...
	for i in 0 1 2 3; do                                               \
		rm -f /dev/rft$$i;                                         \
		rm -f /dev/nrft$$i;                                        \
		rm -f /dev/qft$$i;                                         \
		rm -f /dev/nqft$$i;                                        \
		rm -f /dev/zqft$$i;                                        \
		rm -f /dev/nzqft$$i;                                       \
		rm -f /dev/rawft$$i;                                       \
		rm -f /dev/nrawft$$i;                                      \
		ln -s qft$$i /dev/rft$$i;                                  \
		ln -s nqft$$i /dev/nrft$$i;                                \
		mknod /dev/qft$$i c    $(FTAPE_MAJOR) $$[$$i          ];   \
		mknod /dev/nqft$$i c   $(FTAPE_MAJOR) $$[$$i+4        ];   \
		mknod /dev/zqft$$i c   $(FTAPE_MAJOR) $$[$$i    +16   ];   \
		mknod /dev/nzqft$$i c  $(FTAPE_MAJOR) $$[$$i+4  +16   ];   \
		mknod /dev/rawft$$i c  $(FTAPE_MAJOR) $$[$$i       +32];   \
		mknod /dev/nrawft$$i c $(FTAPE_MAJOR) $$[$$i+4     +32];   \
	done



Peter

--
 Peter Tobias                                EMail:
 Fachhochschule Ostfriesland                 tobias@et-inf.fho-emden.de
 Fachbereich Elektrotechnik und Informatik   tobias@debian.org
 Constantiaplatz 4, 26723 Emden, Germany



Reply to: