Re: [gentoo-user] where to put mknod chmod

2006-10-13 Thread maxim wexler
 
 Ah, the old local.start hack
 
 Apparently we should never use it for things like
 this. But we all 
 do :-)
 
 As a solution it's OK to do this, as long as you
 always remember that 
 you put it there - future updates often end up doing
 strange things 
 because of the contents of local.start, and the
 machine owner meanwhile 
 has forgetten all about it... :-)

I remember on an earlier installation I added the
mknod command to local.start and when the PC booted
there were dozens of lines in the boot console that
said something like mknod: device already exists.
But not this time. 

 Ok, those versons should be fine. It's been a while
 since I used those 
 (I use ~x86), but there's no harm in emerging them,
 commenting out the 
 contents of local.start and seeing what happens
 

IIRC the last time I updated baselayout it overwrote
some important files and my system was un-usable. In
all the excitement I failed to note what they were. Is
there a list somewhere?

-Maxim

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] where to put mknod chmod

2006-10-13 Thread Neil Bothwick
On Fri, 13 Oct 2006 08:22:04 -0700 (PDT), maxim wexler wrote:

 IIRC the last time I updated baselayout it overwrote
 some important files and my system was un-usable. In
 all the excitement I failed to note what they were.

That wasn't baselayout, it was you when running etc-update.

 Is there a list somewhere?

Yes, etc-update shows it to your before asking what to do. Check the
contents of each file before allowing it to be overwritten, and never,
ever let etc-update overwrite etc/fstab, /etc/passwd or /etc/group.


-- 
Neil Bothwick

Artificial Intelligence usually beats real stupidity.


signature.asc
Description: PGP signature


Re: [gentoo-user] where to put mknod chmod

2006-10-13 Thread Drew

On 10/11/06, Alan McKinnon [EMAIL PROTECTED] wrote:

On Wednesday 11 October 2006 18:00, maxim wexler wrote:
 Hi group,

 One of my morning chores after booting linux is to su
 and enter #mknod /dev/ppp c 108 0 and #chmod a+rw
 /dev/parport0.

 Where can I park these commands to automate the
 process?


Another alternative to creating a script to automatically do what
you're asking is to set the following flag to yes in conf.d/rc. The
comments are pretty self explainatory.

---
# UDEV OPTION:
# Set to yes if you want to save /dev to a tarball on shutdown
# and restore it on startup.  This is useful if you have a lot of
# custom device nodes that udev does not handle/know about.

RC_DEVICE_TARBALL=no
---


-Andrew
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] where to put mknod chmod

2006-10-12 Thread maxim wexler
 What baselayout and udev version are you using?
 

Thanks Alan,

I added the commands to local.start and that seems to
have done the trick. 

But here's the baselayout and udev info:

[EMAIL PROTECTED] ~ $ emerge -pv baselayout

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U ] sys-apps/baselayout-1.12.5-r1
[1.11.15-r3] USE=unicode* -bootstrap -build -static
215 kB

Total size of downloads: 215 kB
[EMAIL PROTECTED] ~ $ emerge -pv udev

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-fs/udev-087-r1  USE=(-selinux) 0
kB

-Maxim

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] where to put mknod chmod

2006-10-12 Thread Alan McKinnon
On Thursday 12 October 2006 16:44, maxim wexler wrote:
  What baselayout and udev version are you using?

 Thanks Alan,

 I added the commands to local.start and that seems to
 have done the trick.

Ah, the old local.start hack

Apparently we should never use it for things like this. But we all 
do :-)

As a solution it's OK to do this, as long as you always remember that 
you put it there - future updates often end up doing strange things 
because of the contents of local.start, and the machine owner meanwhile 
has forgetten all about it... :-)

 But here's the baselayout and udev info:

 [EMAIL PROTECTED] ~ $ emerge -pv baselayout

 These are the packages that would be merged, in order:

 Calculating dependencies... done!
 [ebuild U ] sys-apps/baselayout-1.12.5-r1
 [1.11.15-r3] USE=unicode* -bootstrap -build -static
 215 kB

 Total size of downloads: 215 kB
 [EMAIL PROTECTED] ~ $ emerge -pv udev

 These are the packages that would be merged, in order:

 Calculating dependencies... done!
 [ebuild   R   ] sys-fs/udev-087-r1  USE=(-selinux) 0
 kB

Ok, those versons should be fine. It's been a while since I used those 
(I use ~x86), but there's no harm in emerging them, commenting out the 
contents of local.start and seeing what happens

alan
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] where to put mknod chmod

2006-10-11 Thread Alan McKinnon
On Wednesday 11 October 2006 18:00, maxim wexler wrote:
 Hi group,

 One of my morning chores after booting linux is to su
 and enter #mknod /dev/ppp c 108 0 and #chmod a+rw
 /dev/parport0.

 Where can I park these commands to automate the
 process?

udev is supposed to create these nodes and set the permissions. I don't 
have a ppp node as a) i don't use ppp anymore and b) when I did, kppp 
make the node itself. But I have a parport rule:

[EMAIL PROTECTED] /etc/udev $ grep -r parport *
permissions.d/50-udev.permissions:parport*:root:lp:0660
rules.d/50-udev.rules:KERNEL==parport*,   NAME=%k, GROUP=lp

What baselayout and udev version are you using?

alan
-- 
gentoo-user@gentoo.org mailing list