#!/bin/bash
set -e
BASEDIR="$(dirname "$BASH_SOURCE")"
cd "$BASEDIR"
if (( $EUID != 0 )); then
    printf "\n-----Sorry! Run with root privilege (for example with 'sudo ./install')\n\n"
    exit 1
fi
#make
make install
modprobe mt7630e
modprobe mt76xx
echo "
The driver has been successfully installed to Your

###### SMOKY HACKED COMPUTER #####################
.
If you don't have wifi yet, try to reboot.
If bluetooth doesn't work, read the bluetooth
section in README.md file and follow through.

SMOKY REBOOT PC NOW :-D)

"
