aboutsummaryrefslogtreecommitdiffstats
path: root/r8125/doinst.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-30 20:15:15 +0200
committerDanilo M. <danix@danix.xyz>2026-04-30 20:15:15 +0200
commite2f2fa1f8c44ee23cd1d57b4ff5495d6654c6ddb (patch)
treed02ecef82324af7a4613e14af5594d1d36269426 /r8125/doinst.sh
parent5b1e8568859d5ff4a096b491aed57bccc1d53646 (diff)
downloadmy-slackbuilds-e2f2fa1f8c44ee23cd1d57b4ff5495d6654c6ddb.tar.gz
my-slackbuilds-e2f2fa1f8c44ee23cd1d57b4ff5495d6654c6ddb.zip
Added r8125 kernel driver package
Diffstat (limited to 'r8125/doinst.sh')
-rw-r--r--r8125/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/r8125/doinst.sh b/r8125/doinst.sh
new file mode 100644
index 0000000..cfc59d8
--- /dev/null
+++ b/r8125/doinst.sh
@@ -0,0 +1,16 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+config etc/modprobe.d/r8169_blacklist.conf.new
+
+# A good idea whenever kernel modules are added or changed:
+if [ -x sbin/depmod ]; then
+ chroot . /sbin/depmod -a @KERNEL@ 1> /dev/null 2> /dev/null
+fi