how do you make Fedora 16 run a script at boot time, was: Fedora 16 black screen with Radeon HD 6470M: partially solved?

M. Fioretti mfioretti at nexaima.net
Thu Dec 8 21:52:15 UTC 2011


On Thu, Dec 08, 2011 22:40:11 PM +0100, Marco Fioretti wrote:

> #####################################################
> #! /bin/bash
> 
> modprobe radeon
> echo IGD > /sys/kernel/debug/vgaswitcheroo/switch
> echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
> #####################################################
> 
> and then add to /etc/rc/rc.local
> Is this 

sorry, I hit the button too early. I meant: is it OK? Is it all I
should do? It turns out it isn't. The script isn't executed at boot.

So now the (general) problem is: What is the proper, current way to
make Fedora 16 run a shell script at boot time, possibly before X
starts, as the last script otherwise? The online documentation is
surprisingly lacking on this.

thanks,

Marco


More information about the users mailing list