~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to debian/tools/turbostat

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
full_version=`uname -r`
 
3
 
 
4
# Removing flavour from version i.e. generic or server.
 
5
flavour_abi=${full_version#*-}
 
6
flavour=${flavour_abi#*-}
 
7
version=${full_version%-$flavour}
 
8
turbostat="turbostat_$version"
 
9
 
 
10
if ! which "$turbostat" > /dev/null; then
 
11
    echo "$turbostat not found" >&2
 
12
    echo "You may need to install linux-tools-$version" >&2
 
13
    exit 2
 
14
fi
 
15
 
 
16
exec "$turbostat" "$@"