test_bpf.sh 225 B

1234567891011
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0
  3. # Runs bpf test using test_bpf kernel module
  4. if /sbin/modprobe -q test_bpf ; then
  5. /sbin/modprobe -q -r test_bpf;
  6. echo "test_bpf: ok";
  7. else
  8. echo "test_bpf: [FAIL]";
  9. exit 1;
  10. fi