test_bpf.sh 190 B

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