mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
18 lines
422 B
Bash
Executable File
18 lines
422 B
Bash
Executable File
#!/usr/bin/env bash
|
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
|
parsed=$(getopt -o "h${common_getopt_flags}" -l "$common_getopt_flags_long" -- "$@")
|
|
eval set -- "$parsed"
|
|
while true; do
|
|
case "$1" in
|
|
-h)
|
|
echo "https://github.com/cirosantilli/linux-kernel-module-cheat#getvar" 2>&1
|
|
exit
|
|
;;
|
|
*)
|
|
common_getopt_case "$@"
|
|
;;
|
|
esac
|
|
done
|
|
common_setup
|
|
eval "echo \$common_${1}"
|