From d1fd2400dc8b4b3ce5bdf55da1df8b1a733fe276 Mon Sep 17 00:00:00 2001 From: faxmaster Date: Wed, 4 Feb 2015 12:38:26 +0100 Subject: [PATCH] Installation script Quick installation script to be run after each kernel update --- install.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..55ec47c --- /dev/null +++ b/install.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" 1>&2 + exit 1 +fi + +make && +cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless && +depmod && +echo " + ***Success*** +***Module will be activated automatically at next reboot*** +" && + +while true; do + read -p "Do you wish to activate the module now? (y/n)" yn + case $yn in + [Yy]* ) insmod 8812au.ko && echo "***Module activated***" && break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done