This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install ffmpeg | |
echo "Cloning GSPCA Repo..." | |
git clone https://github.com/grandchild/gspca-kinect2.git && cd gspca-kinect2 | |
echo "Building & Installing Modules (copying into /lib/modules/`uname -r`/kernel/drivers/kinect)" | |
make -C /lib/modules/`uname -r`/build M=`pwd` SRCROOT=`pwd` clean modules | |
cp gspca_main.ko gspca_kinect_main.ko | |
mkdir /lib/modules/`uname -r`/kernel/drivers/kinect | |
cp gspca_kinect_main.ko /lib/modules/`uname -r`/kernel/drivers/kinect/gspca_kinect_main.ko | |
cp gspca_kinect2.ko /lib/modules/`uname -r`/kernel/drivers/kinect/gspca_kinect2.ko |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in ./*; do | |
if [[ "$file" = *.cloud ]]; then | |
echo "File[$file] not synced" | |
/usr/bin/python /home/sterlingbutters/.odrive-agent/bin/odrive.py sync "$file" | |
elif [[ "$file" = *.cloudf ]]; then | |
echo "File[$file] not synced" | |
/usr/bin/python /home/sterlingbutters/.odrive-agent/bin/odrive.py sync "$file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
handle_directory(){ | |
for filename in "$1"/*; do | |
if [[ "$filename" = *.cloud ]]; then | |
echo "File[$filename] not synced" | |
/usr/bin/python /home/sterlingbutters/.odrive-agent/bin/odrive.py sync "$filename" | |
elif [[ "$filename" = *.cloudf ]]; then | |
echo "File[$filename] not synced" | |
/usr/bin/python /home/sterlingbutters/.odrive-agent/bin/odrive.py sync "$filename" |