Lines Matching refs:DIR
28 DIR=`dirname "$0"`
29 DIR=`cd "$DIR" && pwd`
30 DEP_DIR="$DIR/$DEP_DRVNAME"
31 DIR="$DIR/$DRVNAME"
32 if [ ! -d "$DIR" ]; then
33 echo "Cannot find $DIR or it's not a directory..."
46 trap "sudo chown -R `whoami` $DIR $DEP_DIR; exit 1" INT
68 cp -R "$DIR" "$VBOX_DARWIN_SYMS/"
75 if sudo chown -R root:wheel "$DIR" "$DEP_DIR"; then
76 OWNER=`/usr/bin/stat -f "%u" "$DIR"`
82 echo "${SCRIPT_NAME}.sh: chown didn't work on $DIR, using temp location $TMP_DIR/$DRVNAME"
90 # make a copy and switch over DIR
92 sudo cp -Rp "$DIR" "$TMP_DIR/"
93 DIR="$TMP_DIR/$DRVNAME"
99 sudo chown -R root:wheel "$DIR" "$DEP_DIR"
102 sudo chmod -R o-rwx "$DIR"
105 echo "${SCRIPT_NAME}.sh: loading $DIR... (kextutil $OPTS -d \"$DEP_DIR\" \"$DIR\")"
106 sudo kextutil $OPTS -d "$DEP_DIR" "$DIR"
108 echo "${SCRIPT_NAME}.sh: loading $DIR... (kextload $OPTS -d \"$DEP_DIR\" \"$DIR\")"
109 sudo kextload $OPTS -d "$DEP_DIR" "$DIR"
112 sudo chown -R `whoami` "$DIR" "$DEP_DIR"