-
-
Save andriiburka/6d38a74b0810aadf581f68b885a6acaf to your computer and use it in GitHub Desktop.
mFi Installation Script for Raspberry Pi
This file contains hidden or 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 | |
################################################################################ | |
# | |
# This script automates the installation of the mFi controller software on the | |
# Raspberry Pi. | |
# | |
# http://www.technologist.site/ubnt | |
# | |
################################################################################ | |
apt-get update && apt-get -y upgrade | |
apt-get -y install oracle-java7-jdk jsvc mongodb | |
systemctl stop mongodb | |
systemctl disable mongodb | |
wget http://dl.ubnt.com/mfi/2.1.11/mFi.unix.zip | |
unzip mFi.unix.zip -d /usr/lib | |
wget https://gist.github.com/TechnologistAU/22b0493478c899cc403f6056903422ba/raw -O /usr/lib/mFi/bin/mfi.init | |
chmod +x /usr/lib/mFi/bin/mfi.init | |
ln -fs /usr/lib/mFi/bin/mfi.init /etc/init.d/mfi | |
sudo update-rc.d mfi defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment