]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - scripts/Lindent
netfilter: nat: Revert "netfilter: nat: convert nat bysrc hash to rhashtable"
[mirror_ubuntu-artful-kernel.git] / scripts / Lindent
1 #!/bin/sh
2
3 PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
4
5 RES=`indent --version | cut -d' ' -f3`
6 if [ "$RES" = "" ]; then
7 exit 1
8 fi
9 V1=`echo $RES | cut -d'.' -f1`
10 V2=`echo $RES | cut -d'.' -f2`
11 V3=`echo $RES | cut -d'.' -f3`
12
13 if [ $V1 -gt 2 ]; then
14 PARAM="$PARAM -il0"
15 elif [ $V1 -eq 2 ]; then
16 if [ $V2 -gt 2 ]; then
17 PARAM="$PARAM -il0"
18 elif [ $V2 -eq 2 ]; then
19 if [ $V3 -ge 10 ]; then
20 PARAM="$PARAM -il0"
21 fi
22 fi
23 fi
24
25 indent $PARAM "$@"