Posted: Fri Jul 12, 2013 7:36 pm Post subject: [SOLVED] Run a script before and after the emerge process?

Hi guys!

I have a thinkpad w500. Its a workstation class laptop but it gets very very hot when im compiling a big package (kde, firefox, etc). My idea is to make portage run a script before it begins the compilation process, and run another script after it finishes.

The first script will increase the fan speed to maximun. This will run before the compilation process begins. The second one will make the fans run quiet again, and will run after the compilation process has finished.

If im compiling 10 packages, the first script should run when the first package starts compiling. The second script should run after the lastest package finishes.

I have these scripts already. How can i plug those scripts to portage?_________________En los CDs de Microsoft, al reves escuchas un mensaje satanico. Eso no es lo peor, al derecho, te instala windows.

Last edited by Cyberstudio on Sat Jul 13, 2013 3:54 pm; edited 1 time in total

# the next line would change the cpu-governour, if available, to the highest frequency
#[ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ] && echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

ok so you want emerge passed some stuff.... that can be done too i _think_ its emerge $@ instead of the emerge alone that would do nothing.... then it would be ./script package though i could be wrong.