#!/bin/sh

UTILITY=/usr/bin/shuffle-utility

# if shuffle utility doesnt exist, try the rootless path
if [ ! -f "$UTILITY" ]; then
    UTILITY=/var/jb$UTILITY
fi

if [ -f "$UTILITY" ]; then
    chown root:wheel $UTILITY
    chmod 0777 $UTILITY
    chmod +s $UTILITY
    echo "set $UTILITY permissions"
fi

exit 0;
