summaryrefslogtreecommitdiffstats
path: root/patches/dkms.patch
blob: d7f4af23806d6eeecc09d8cb8acb6fecfc0966a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- sbin/dkms	2016-06-15 11:57:24.000000000 +0100
+++ sbin/dkms	2017-04-14 11:09:12.851156596 +0100
@@ -3308,6 +3308,13 @@
     fi
 }
 
+function display_plymouth_message()
+{
+    if [ -x /bin/plymouth ] && /bin/plymouth --ping; then
+	/bin/plymouth display-message --text="$1"
+    fi
+}
+
 #############################
 ####                     ####
 #### Program Starts Here ####
@@ -3600,7 +3607,9 @@
 	build)
 	    delayed_xz=1
 	    delayed_gzip=1
+	    display_plymouth_message "Building $module driver - this may take some time"
 	    build_module
+	    display_plymouth_message ""
 	    ;;
 	install)
             # Make sure they're root
@@ -3608,7 +3617,9 @@
 		echo $"You must be root to use this command." >&2
 		exit 1
 	    fi
+	    display_plymouth_message "Installing $module driver - this may take some time"
 	    install_module
+	    display_plymouth_message ""
 	    ;;
 	match)
 	    # Make sure they're root