Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2007 08:30:15 -0600
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: how to run root cmds when starting xorg?
Message-ID:  <200702270830.19985.kirk@strauser.com>
In-Reply-To: <45E0C941.2030203@gmail.com>
References:  <45E0C941.2030203@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1355448.s5Mb2O1ekE
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Saturday 24 February 2007 17:24, deeptech71@gmail.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
#!/bin/sh
kldload whatever.ko
$ cat /usr/local/bin/unloadsound
#!/bin/sh
kldunload whatever.ko

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

--nextPart1355448.s5Mb2O1ekE
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQBF5EB75sRg+Y0CpvERAuRIAJ0d7I9Ysafl51jgkL172UIxquDpxgCeIgpA
1apJZ7TMTXDmkeaiOkOzbtg=
=QL5J
-----END PGP SIGNATURE-----

--nextPart1355448.s5Mb2O1ekE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702270830.19985.kirk>