]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - scripts/Lindent
PCI / PM: Always check PME wakeup capability for runtime wakeup support
[mirror_ubuntu-artful-kernel.git] / scripts / Lindent
CommitLineData
1da177e4 1#!/bin/sh
78c52502 2
ee8900c9 3PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
78c52502
JD
4
5RES=`indent --version | cut -d' ' -f3`
fa70900e
JD
6if [ "$RES" = "" ]; then
7 exit 1
8fi
78c52502
JD
9V1=`echo $RES | cut -d'.' -f1`
10V2=`echo $RES | cut -d'.' -f2`
11V3=`echo $RES | cut -d'.' -f3`
12
ee8900c9
JP
13if [ $V1 -gt 2 ]; then
14 PARAM="$PARAM -il0"
15elif [ $V1 -eq 2 ]; then
16 if [ $V2 -gt 2 ]; then
78c52502 17 PARAM="$PARAM -il0"
ee8900c9
JP
18 elif [ $V2 -eq 2 ]; then
19 if [ $V3 -ge 10 ]; then
20 PARAM="$PARAM -il0"
21 fi
22 fi
23fi
78c52502 24
ee8900c9 25indent $PARAM "$@"