#!/bin/sh
echo `awk '{print $1/1000" MHz"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
echo `awk '/mT/ {memttl = $2}; /mF/ {memfre = $2}; /Bu/ {membff = $2}; $1 == "Cached:" {memcch = $2} END {printf ("%.1f MB\n",(memttl-memfre-membff-memcch)/1024)}' /proc/meminfo`
CONN=$(/sbin/route | awk '/default/ {print $NF}')
IP="-"
if [ "$CONN" == "wlan0" ]; then
IP=$(/sbin/ifconfig wlan0 | awk -F "[: ]" '/Bc/ {print $13}')
fi
if [ "$CONN" == "gprs0" ]; then
IP=$(/sbin/ifconfig gprs0 | awk -F "[: ]" '/P-t-P/ {print $13}')
fi
echo -n $IP
[SystemInfoBackground] PosL="5;220" PosP="5;220" SizeP="150;70" SizeL="150;70" Radius=5 Color="0;0;0;150" [SystemInfoText] PosL="8;220" PosP="8;220" SizeP="150;70" SizeL="150;70" Font=";12;normal;0" Color="50;255;25;255" Alignment="left;center" Multiline=1 Text="CPU:\nMem:\nIP:" [SystemInfo] PosL="5;220" PosP="5;220" SizeP="147;70" SizeL="147;70" Font=";12;normal;0" Alignment="right;center" Multiline=1 Command="/opt/qtlockscreen/sysinfo.sh" UpdateIntervalSeconds=1
Widgets\25\Name="Rect.SystemInfoBackground" Widgets\26\Name="Text.SystemInfoText" Widgets\27\Name="TextCommand.SystemInfo"



/opt/qtlockscreen/sysinfo.sh
/opt/qtlockscreen/sysinfo.sh

root chmod a+x /opt/qtlockscreen/sysinfo.sh
| The Following User Says Thank You to sakya For This Useful Post: | ||
root chmod a+x /opt/qtlockscreen/sysinfo.sh

| The Following User Says Thank You to D@vIcHoJD For This Useful Post: | ||
start on started hildon-desktop respawn script exec su - user -c "exec /usr/bin/qtlockscreen" end script
| The Following User Says Thank You to sakya For This Useful Post: | ||
exec su - user -c "exec /usr/bin/qtlockscreen"
Maemo applications must be run with the run-standalone.sh script" qtlockscreen: cannot connect to X server