summaryrefslogtreecommitdiff
path: root/libre-testing/linux-libre-kmod-alx/linux-libre-kmod-alx.install
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-04-30 22:56:36 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-04-30 22:56:36 -0300
commitbf73cdd8cfcf5ecaa491529b2cd7d173e65d5bdd (patch)
treedb37a465615682fa895cddfbfdfef7f365050f52 /libre-testing/linux-libre-kmod-alx/linux-libre-kmod-alx.install
parente0a8d2cf984cf6deaaec78895751f9f169907643 (diff)
parentef3d62986a4e195452561d67ae4e650fea19f134 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre-testing/linux-libre-kmod-alx/linux-libre-kmod-alx.install')
-rw-r--r--libre-testing/linux-libre-kmod-alx/linux-libre-kmod-alx.install32
1 files changed, 32 insertions, 0 deletions
diff --git a/libre-testing/linux-libre-kmod-alx/linux-libre-kmod-alx.install b/libre-testing/linux-libre-kmod-alx/linux-libre-kmod-alx.install
new file mode 100644
index 000000000..069348192
--- /dev/null
+++ b/libre-testing/linux-libre-kmod-alx/linux-libre-kmod-alx.install
@@ -0,0 +1,32 @@
+generic() {
+ echo " > Running depmod now..."
+ depmod -a
+}
+
+unload() {
+ lsmod | grep alx > /dev/null
+ if [ "$?" = "0" ]; then
+ rmmod alx
+ fi
+}
+
+post_install() {
+ generic
+ echo " > Reloading alx module..."
+ echo " Please note that you may REBOOT your system to get it works!"
+ unload
+ sleep 0.5
+ modprobe alx
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ generic
+ echo " > Unloading memory resident module..."
+ unload
+ rmmod compat
+ echo " Module unloaded!."
+}