From:
[email protected]
--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
* Bdale Garbee schrieb am 12.08.04, um 23:22 Uhr:
Someone want to offer me a patch that implements this? It's not hard, but I'm
working on other things today and it'll get done faster if someone hands me a patch.
There's already code in the consoleonly target to do kernel version checking.
Ah, this was the part where i did not know how to realize this check,
thanks for the hint. :)
Well, i created a patch for this bug now, but i am not completely sure
about the check of the $kern_rev3, because it will also output just 8
on kernels like 2.6.8-pre2 (where char-major 250 was used).
The second thing where i am not sure is if it is needed to check for
devfs before calling makedev, and if the ckeck in my patch is right.
See the attached file.
Thomas
--
Thomas Schmidt
[email protected]
--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="263136.diff" Content-Transfer-Encoding: quoted-printable
diff -Nurd makedev-2.3.1/debian/init.d makedev-2.3.1.new/debian/init.d
--- makedev-2.3.1/debian/init.d 2004-08-13 00:08:20.000000000 +0200
+++ makedev-2.3.1.new/debian/init.d 2004-08-13 00:10:38.000000000 +0200
@@ -8,6 +8,20 @@
case "$1" in
start)
test -L /dev/MAKEDEV || ln -fs /sbin/MAKEDEV /dev/MAKEDEV
+
+ # create dvb-devices, if the dvb-directory allready exists, and
+ # no devfs is used (this a workaround for the changed major-number
+ # of the dvb-devices, introduced in kernel 2.6.8, to be able to
+ # switch between kernels <= 2.6.7 and >= 2.6.8, without manual
+ # recreation of the devices (MAKEDEV dvb checks the kernel-version
+ # and uses the correct major-number))
+
+ if [ ! -e /dev/.devfsd ]; then
+ if [ -d /dev/dvb ]; then
+ cd /dev && ./MA