test_user_copy.sh 229 B

12345678910
  1. #!/bin/sh
  2. # Runs copy_to/from_user infrastructure using test_user_copy kernel module
  3. if /sbin/modprobe -q test_user_copy; then
  4. /sbin/modprobe -q -r test_user_copy
  5. echo "user_copy: ok"
  6. else
  7. echo "user_copy: [FAIL]"
  8. exit 1
  9. fi