printf.sh 282 B

1234567891011121314
  1. #!/bin/sh
  2. # Runs printf infrastructure using test_printf kernel module
  3. if ! /sbin/modprobe -q -n test_printf; then
  4. echo "printf: [SKIP]"
  5. exit 77
  6. fi
  7. if /sbin/modprobe -q test_printf; then
  8. /sbin/modprobe -q -r test_printf
  9. echo "printf: ok"
  10. else
  11. echo "printf: [FAIL]"
  12. exit 1
  13. fi