runtc 487 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. . "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
  3. parsed=$(getopt -o "h${common_getopt_flags}" -l "$common_getopt_flags_long" -- "$@")
  4. eval set -- "$parsed"
  5. while true; do
  6. case "$1" in
  7. h)
  8. echo "https://github.com/cirosantilli/linux-kernel-module-cheat#runtc" 2>&1
  9. exit
  10. ;;
  11. *)
  12. common_getopt_case "$@"
  13. ;;
  14. esac
  15. done
  16. tool="$1"
  17. shift
  18. common_setup
  19. "${common_buildroot_out_dir}/host/bin/"*-buildroot-*"${tool}" "$@"
  20. exit "$?"