load.sh 338 B

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