You are not logged in.

#1 2008-03-06 12:02:11

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

How to revert a 'sed' change for udev

I did this command from the wiki to speed up udev:

sed -i "s#/lib/udev/load-modules.sh#/sbin/modprobe#g" /etc/udev/rules.d/udev.rules

All is working well with my self compiled kernel, but how do I revert this change so I can temporarily boot my original kernel? (I forgot to backup udev.rules)

Is it literally a case of swapping the two around?:

sed -i "s#/sbin/modprobe#/lib/udev/load-modules.sh#g" /etc/udev/rules.d/udev.rules

flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#2 2008-03-06 12:12:53

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: How to revert a 'sed' change for udev

I would reinstall udev, cause there might have been more instances of "/sbin/modprobe" in the original file...
When you're sure there were'nt, swapping the two around is the way to go...

Offline

Board footer

Powered by FluxBB