Skip to content

Instantly share code, notes, and snippets.

View skrator's full-sized avatar

kmover skrator

View GitHub Profile
#!/bin/bash -x
CALLERS_UID="$1"
REFCOUNT_PATH="$2"
DCALL_PATH="$3"
if [ $UID -ne 0 ]; then
# Test that the script is run as root.
echo "Script must run as root"
exit 1