#!/bin/sh # make script for liqbase, its dirty but gets me running on device instantly and is always stoppable with ctrl c (enforced by -9) clear clear clear clear clear if make; then scp liqbase root@10.0.0.2:/usr/bin/liq/liqbase #scp liqbase_readme.txt root@10.0.0.2:/usr/bin/liq/liqbase_readme.txt #ssh root@10.0.0.2 "echo 40 >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold" # alternative method to get fullspeed :) # power options #options: conservative ondemand null powersave performance #ssh root@10.0.0.2 "echo conservative >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" # fullspeed #ssh root@10.0.0.2 "echo ondemand >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" # slows down #ssh root@10.0.0.2 "echo null >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" # fullspeed #ssh root@10.0.0.2 "echo powersave >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" # always slow ssh root@10.0.0.2 "echo performance >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" # fullspeed #ssh root@10.0.0.2 "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" # call program ssh root@10.0.0.2 "export DISPLAY=:0.0; cd /usr/bin/liq; ./liqbase" # restore gov ssh root@10.0.0.2 "echo ondemand >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" # make sure we killed ourselves ssh root@10.0.0.2 killall -9 liqbase fi