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-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) # Dummy script that always succeeds.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) # Check if the first parameter appears in the rest. Succeeds if found.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) # This helper is useful if a particular option was passed to this script.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) # Typically used like this:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #   arg_contain <word-you-are-searching-for> "$@"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) arg_contain ()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	search="$1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	shift
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	while [ $# -gt 0 ]
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	do
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 		if [ "$search" = "$1" ]; then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 			return 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 		fi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 		shift
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	done
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	return 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) if arg_contain --version "$@" || arg_contain -v "$@"; then
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	progname=$(basename $0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	echo "GNU $progname (scripts/dummy-tools/$progname) 2.50"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	exit 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) fi