1. Create a file in /etc/init.d/file_name,
sudo nano /etc/init.d/file_name
2. Copy and paste the code below and save.
setpci -s 00:02.0 F4.B=50
3. Now lets set some permissions.
sudo chmod 755 /etc/init.d/file_name
4. We want the script to run on boot up.
sudo update-rc.d file_name defaults
Now restart your Ubuntu and the script we created will run on boot-up automatically.



