https://github.com/torvalds/linux
Revision 8b97b21e0f4f59801d05a5c536417f04ecfb5603 authored by Linus Torvalds on 16 June 2011, 22:02:20 UTC, committed by Linus Torvalds on 16 June 2011, 22:02:20 UTC
* git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/linux-2.6-nsfd:
  proc: Fix Oops on stat of /proc/<zombie pid>/ns/net
2 parent s 99a15e2 + 7939253
Raw File
Tip revision: 8b97b21e0f4f59801d05a5c536417f04ecfb5603 authored by Linus Torvalds on 16 June 2011, 22:02:20 UTC
Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/linux-2.6-nsfd
Tip revision: 8b97b21
Lindent
#!/bin/sh
PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
RES=`indent --version`
V1=`echo $RES | cut -d' ' -f3 | cut -d'.' -f1`
V2=`echo $RES | cut -d' ' -f3 | cut -d'.' -f2`
V3=`echo $RES | cut -d' ' -f3 | cut -d'.' -f3`
if [ $V1 -gt 2 ]; then
  PARAM="$PARAM -il0"
elif [ $V1 -eq 2 ]; then
  if [ $V2 -gt 2 ]; then
    PARAM="$PARAM -il0";
  elif [ $V2 -eq 2 ]; then
    if [ $V3 -ge 10 ]; then
      PARAM="$PARAM -il0"
    fi
  fi
fi
indent $PARAM "$@"
back to top