* bin/cpu-freq: fix for powerpc, fix for arm

* screen-profiles-status: use home bin scripts, if available first,
  then fallback to system-wide, allows for local overrides
 -- Dustin Kirkland <kirkland@ubuntu.com>Thu, 16 Apr 2009 12:27:13 -0500
This commit is contained in:
Dustin Kirkland 2009-04-16 12:32:58 -05:00
commit 6a04028343
3 changed files with 8 additions and 6 deletions

View file

@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
mhz=`egrep -m 1 "^cpu MHz|^clock" /proc/cpuinfo | awk -F"[:.]" '{print $2}'` mhz=`egrep -i -m 1 "^cpu MHz|^clock|^bogomips" /proc/cpuinfo | awk -F"[:.]" '{print $2}'`
if [ $mhz -ge 1000 ]; then if [ $mhz -ge 1000 ]; then
speed=$(echo $mhz | awk '{ printf "%.1f", $1 / 1000 }') speed=$(echo $mhz | awk '{ printf "%.1f", $1 / 1000 }')

6
debian/changelog vendored
View file

@ -1,13 +1,15 @@
screen-profiles (1.45) unreleased; urgency=low screen-profiles (1.45) unreleased; urgency=low
[ Dustin Kirkland ] [ Dustin Kirkland ]
* bin/cpu-freq: fix for powerpc * bin/cpu-freq: fix for powerpc, fix for arm
* bin/uptime: don't print seconds, since we don't update often enough * bin/uptime: don't print seconds, since we don't update often enough
* screen-profiles-status: use home bin scripts, if available first,
then fallback to system-wide, allows for local overrides
[ Jon Bernard <bernardj@gmail.com> ] [ Jon Bernard <bernardj@gmail.com> ]
* debian/control: fix typo in screen-profiles-extras description * debian/control: fix typo in screen-profiles-extras description
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 10:15:10 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 12:27:13 -0500
screen-profiles (1.44-0ubuntu1) jaunty; urgency=low screen-profiles (1.44-0ubuntu1) jaunty; urgency=low

View file

@ -21,10 +21,10 @@
renice 10 $$ >/dev/null 2>&1 || true renice 10 $$ >/dev/null 2>&1 || true
ionice -c3 -p $$ >/dev/null 2>&1 || true ionice -c3 -p $$ >/dev/null 2>&1 || true
if [ -d "/var/lib/screen-profiles" ]; then if [ -d "$HOME/.screen-profiles/bin" ]; then
DIR="/var/lib/screen-profiles"
elif [ -d "$HOME/.screen-profiles/bin" ]; then
DIR="$HOME/.screen-profiles/bin" DIR="$HOME/.screen-profiles/bin"
elif [ -d "/var/lib/screen-profiles" ]; then
DIR="/var/lib/screen-profiles"
else else
exit 1 exit 1
fi fi