Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148503 - net-dialup/slmodem changed device node
Summary: net-dialup/slmodem changed device node
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-21 06:29 UTC by Milos Popovic
Modified: 2006-09-22 05:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
slmodem init script (slmodem-2.9.11.init,2.21 KB, text/plain)
2006-09-21 12:59 UTC, Alin Năstac (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milos Popovic 2006-09-21 06:29:33 UTC
In file /usr/portage/net-dialup/slmodem/files/slmodem-2.9.11.init
if [ ! -c "${MDEV}" ]; then mknod ${MDEV} c 242 0; fi
should now be:
if [ ! -c "${MDEV}" ]; then mknod ${MDEV} c 243 0; fi
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 06:45:29 UTC
Why? Who changed the device? What's your problem exactly?
Comment 2 Milos Popovic 2006-09-21 09:01:52 UTC
/dev/slusb0 was not well created, and I was digging for possibile problem, and found:
Gentoo ~ # cat /proc/devices 
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 14 sound
 21 sg
 29 fb
 81 video4linux
108 ppp
116 alsa
128 ptm
136 pts
180 usb
189 usb_device
195 nvidia
243 slusb

mknod was useing 242 an major number, but I found that it is 243, and edit my /etc/init.d/slmodem file. Later, in Changelog for slmodem I found:
* Version 2.9.11
        - Off-hook with mixer (ALSA mode)
        - device major numbers change, (212 -> 242, 213 -> 243)
        - support for HSP1688 PCI modem
        - misc compatibility fixes
        - misc improvements

So device major number should be 243 from now on. I am sory about my shortness, and bad english...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 10:00:45 UTC
Much more clear now. ;)
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2006-09-21 12:25:44 UTC
To be exact, the device major number depend on the module:
 242 -> slamr
 243 -> slusb

But, isn't the device created by the udev the moment you load slusb module?
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2006-09-21 12:59:53 UTC
Created attachment 97689 [details]
slmodem init script

Please try this slmodem init script and tell me if it worked for you.
Comment 6 Milos Popovic 2006-09-22 00:04:24 UTC
Works fine. Don't know about slamr.
Comment 7 Alin Năstac (RETIRED) gentoo-dev 2006-09-22 05:33:00 UTC
fixed in cvs and bumped to slmodem-2.9.11_pre20051101-r2.