summaryrefslogtreecommitdiff
path: root/extra/i2c_pseudo/install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/i2c_pseudo/install')
-rwxr-xr-xextra/i2c_pseudo/install30
1 files changed, 0 insertions, 30 deletions
diff --git a/extra/i2c_pseudo/install b/extra/i2c_pseudo/install
deleted file mode 100755
index f4fbecedc9..0000000000
--- a/extra/i2c_pseudo/install
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# This attempts to build and install the i2c-pseudo Linux kernel module.
-
-set -e
-
-make clean
-make
-ret=0
-sudo make modules_install || ret="$?"
-
-if [ "$ret" -eq 0 ]; then
- make clean
- sudo depmod -a
- sudo modprobe i2c-pseudo
- echo "SUCCESS: installed and loaded i2c-pseudo module"
-else
- echo 1>&2 "WARNING: make modules_install failed with exit status $ret."
- echo 1>&2 "The module has not been installed for future reuse."
- echo 1>&2 "Will still attempt to load the module, using insmod instead of "\
-"modprobe."
- ret=0
- sudo insmod i2c-pseudo.ko || ret="$?"
- if [ "$ret" -ne 0 ]; then
- make clean
- exit "$ret"
- fi
- echo "PARTIAL SUCCESS: loaded i2c-pseudo module (not installed)"
- make clean
-fi