load.sh 343 B

1234567891011
  1. #!/bin/sh
  2. module="graphene-ipc"
  3. (/sbin/lsmod | grep -q "graphene_ipc") && \
  4. ((echo "unloading graphene_ipc..."; /sbin/rmmod graphene_ipc) || exit 1) || continue
  5. # invoke insmod with all arguments we got
  6. # and use a pathname, as newer modutils don't look in . by default
  7. echo "loading graphene_ipc..."
  8. /sbin/insmod ./$module.ko $* || exit 1