Skip to content

Commit

Permalink
load: Check if already loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayknarayan committed Apr 22, 2019
1 parent 1d0c64e commit 5b880a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ccp_kernel_load
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ if [ "$#" -ne 1 ]; then
exit 1
fi

if [ -z "lsmod | grep 'ccp'" ]; then
echo "CCP kernel module already loaded"
exit 1
fi

make IPC=$(echo $1 | awk -F'=' '{print $NF}') || exit

# invoke insmod with all arguments we got
Expand Down

0 comments on commit 5b880a6

Please sign in to comment.