The best place to put this is under /etc/profile.d/my_favorite_profile_settings.sh When done you will be able to access the MYKERNAL variable from any logged in user. See example below.
[EMAIL PROTECTED] etc]# cat /etc/profile.d/hammclan.sh PATH="$PATH:/usr/sbin:/sbin:/usr/java/j2re1.4.2_01/bin:/usr/local/Acrobat4/bin/" export PATH #CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvs CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvs export CVSROOT umask 002 #alias passwd='/usr/bin/yppasswd' xhost +localhost export MYKERNEL=`uname -r` export EDITOR="pico -w" [EMAIL PROTECTED] etc]# ls -la /etc/profile.d/hammclan.* -rwxr-xr-x 1 root root 130 Jul 15 12:54 /etc/profile.d/hammclan.csh -rwxr-xr-x 1 root root 306 Sep 22 15:28 /etc/profile.d/hammclan.sh On Mon, 2004-12-13 at 16:16, Jarod Wilson wrote: > On Monday 13 December 2004 12:56, PAUL WILLIAMSON wrote: > > >>> "Mark Gardner" <[EMAIL PROTECTED]> 12/13/2004 3:43:07 PM >>> > > > > > >in Jarods Guide there is a line you add to RC.local to have $MYKERNEL > > >variable. i have the following in rc.local but it does not survive > > >reboot. Other things that happen too: there's and extra line to add > > >so the newer 350s don't have a green screen or blue line on the right > > >side. Those don't survive reboot also. > > > > > >export MYKERNEL=`uname -r` > > > > I just noticed that problem with MYKERNEL as well. > > > > I moved it to /etc/rc.d/rc.local and it works fine now. > > /etc/rc.local is a symlink to /etc/rc.d/rc.local on my boxes, created at > install time... However, I'm not certain that the variable is actually set > for anyone but root, using a true root shell (either by logging in as root or > using 'su -'). Might be better to stash that in both /root/.bash_profile > and /home/mythtv/.bash_profile instead.
_______________________________________________ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users