[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to run root cmds when starting xorg?

On Saturday 24 February 2007 17:24, deeptech71_(_at_)_gmail_(_dot_)_com wrote:
> how do i exec a kldload script when starting ttyv8 kdm (or xorg) ?

Another idea not yet mentioned is to create two wrapper scripts like so:

$ cat /usr/local/bin/loadsound
kldload whatever.ko
$ cat /usr/local/bin/unloadsound
kldunload whatever.ko

and the install sudo and configure it to give your user the ability to run 
those two commands without entering your password.  Finally, add "sudo 
loadsound" and "sudo unloadsound" to your startup and exit scripts.
Kirk Strauser

Attachment: pgp95vH8rGSZm.pgp
Description: PGP signature

Visit your host, monkey.org