Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] What is "the correct way" to keep a /dev entry through reboots?
Date: Thu, 03 Sep 2009 00:33:03
Message-Id: 4A9F5712.4070309@gmail.com
In Reply to: [gentoo-user] What is "the correct way" to keep a /dev entry through reboots? by Walter Dnes
1 Walter Dnes wrote:
2 > I recently bought a USR5637 USB dialup modem for my 2nd PC. I chose
3 > it because it's small, and specifically claims to support linux.
4 > Following instructions at http://www.linux-usb.org/USB-guide/x332.html I
5 > * recompiled the kernel with CDC(ACM) USB modem support
6 > * tried "mknod /dev/usb/ttyACM0 c 166 0"
7 > * woops, no /dev/usb/. So I did "mkdir /dev/usb" and then the mknod
8 > * I rebooted, and discovered that /dev/usb was gone
9 >
10 > For now I have the mkdir and mknod commands in /etc/conf.d/local/start
11 > to recreate them at each bootup, but putting stuff in there is usually a
12 > last resort. Is there a "more correct" way of doing it?
13 >
14 > BTW, the modem works. I ssh'd from my main machine to the 2nd
15 > computer and dialed into my dialup ISP, and launched a w3m text browser
16 > session. The scarey part is that there is no modem noise to let me
17 > know when I'm connected. But ifconfig indicated that I now had ppp0, in
18 > addition to lo and eth0. Plus I went to whatismyip.org with w3m and got
19 > an IP address that reversed DNS to my dialup provider.
20 >
21 >
22
23 I'm not positive but I think you can set it to save /dev here:
24 /etc/conf.d/rc This is the section I am thinking would be the correct one:
25
26
27 # UDEV OPTION:
28 # Set to "yes" if you want to save /dev to a tarball on shutdown
29 # and restore it on startup. This is useful if you have a lot of
30 # custom device nodes that udev does not handle/know about.
31
32 RC_DEVICE_TARBALL="no"
33
34 I hope that helps.
35
36 Dale
37
38 :-) :-)