Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) #!/bin/sh
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) RES=`indent --version | cut -d' ' -f3`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) if [ "$RES" = "" ]; then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 	exit 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) fi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) V1=`echo $RES | cut -d'.' -f1`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) V2=`echo $RES | cut -d'.' -f2`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) V3=`echo $RES | cut -d'.' -f3`
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) if [ $V1 -gt 2 ]; then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)   PARAM="$PARAM -il0"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) elif [ $V1 -eq 2 ]; then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)   if [ $V2 -gt 2 ]; then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)     PARAM="$PARAM -il0"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)   elif [ $V2 -eq 2 ]; then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)     if [ $V3 -ge 10 ]; then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)       PARAM="$PARAM -il0"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)     fi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)   fi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) fi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) indent $PARAM "$@"