[mythtv-users] [OT] rc.local not running

Paul Hamm paulhamm at verizon.net
Mon Dec 13 21:40:34 UTC 2004

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.

[root at cerberus etc]# cat /etc/profile.d/hammclan.sh
export PATH
export CVSROOT
umask 002
#alias passwd='/usr/bin/yppasswd'
xhost +localhost
export MYKERNEL=`uname -r`
export EDITOR="pico -w"

[root at cerberus 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" <markgard at gmail.com> 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.

More information about the mythtv-users mailing list