Skip to content

Instantly share code, notes, and snippets.

@andriiburka
Forked from TechnologistAU/mfi.sh
Created January 12, 2023 09:57
Show Gist options
  • Save andriiburka/6d38a74b0810aadf581f68b885a6acaf to your computer and use it in GitHub Desktop.
Save andriiburka/6d38a74b0810aadf581f68b885a6acaf to your computer and use it in GitHub Desktop.
mFi Installation Script for Raspberry Pi
#!/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