You are not logged in.

#1 2009-03-17 02:00:28

MTsoul
Member
From: Vancouver, BC
Registered: 2008-08-14
Posts: 95
Website

Oh god I overwrote /etc/udev/rules.d/90-hal.rules

I accidentally sudo overwrote this file with garbage. I haven't rebooted yet. What was in here? Is it important? How do I get it back?

Thanks!

Offline

#2 2009-03-17 02:06:47

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Oh god I overwrote /etc/udev/rules.d/90-hal.rules

This is the default:

# pass all events to the HAL daemon
RUN+="socket:/org/freedesktop/hal/udev_event"

Offline

#3 2009-03-17 02:08:09

MTsoul
Member
From: Vancouver, BC
Registered: 2008-08-14
Posts: 95
Website

Re: Oh god I overwrote /etc/udev/rules.d/90-hal.rules

Well that is what I currently have in that file... Oh god was it something else I overwrote? *cringes*

Thanks.

Offline

#4 2009-03-17 02:09:54

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Oh god I overwrote /etc/udev/rules.d/90-hal.rules

If it was something in that directory, the sizes should be different than mine. This is what I have:

ls -l /etc/udev/rules.d/
total 52
-rw-r--r-- 1 root root  1071 2008-09-24 07:07 60-pcmcia.rules
-rw-r--r-- 1 root root   390 2009-03-07 15:42 75-cd-aliases-generator.rules.optional
-rw-r--r-- 1 root root  2403 2009-03-07 15:42 75-persistent-net-generator.rules.optional
-rw-r--r-- 1 root root  8039 2009-03-07 15:42 81-arch.rules
-rw-r--r-- 1 root root    82 2008-11-30 08:51 90-hal.rules
-rw-r--r-- 1 root root    28 2008-10-19 06:35 99-fuse.rules

Offline

#5 2009-03-17 02:37:23

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Oh god I overwrote /etc/udev/rules.d/90-hal.rules

Are you sure you over wrote it? If you did a command like this then it wouldn't have overwritten:

sudo cat /dev/null > /etc/udev/rules.d/90-hal.rules

Since the redirection (>) doesn't get the sudo rights, only the cat command does.

Last edited by fukawi2 (2009-03-17 02:37:39)

Offline

#6 2009-03-17 02:57:44

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Oh god I overwrote /etc/udev/rules.d/90-hal.rules

You can always "pacman -S hal" to reinstall all the hal files.

Offline

#7 2009-03-17 08:25:32

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Oh god I overwrote /etc/udev/rules.d/90-hal.rules

And if you think it was something else in udev............. pacman -S udev!

Offline

#8 2009-03-17 10:09:00

droog
Member
Registered: 2004-11-18
Posts: 877

Re: Oh god I overwrote /etc/udev/rules.d/90-hal.rules

oh god! all mods and devs up in here. man i still love arch.

Offline

#9 2009-03-17 18:01:49

MTsoul
Member
From: Vancouver, BC
Registered: 2008-08-14
Posts: 95
Website

Re: Oh god I overwrote /etc/udev/rules.d/90-hal.rules

Ha! I looked at everything and it looked alright. A reboot later, I'm still alright. Phew. Thanks guys.

Offline

Board footer

Powered by FluxBB