aboutsummaryrefslogtreecommitdiffstats
path: root/r8125/doinst.sh
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-10 19:36:30 +0200
committerDanilo M. <danix@danix.xyz>2026-07-10 19:36:30 +0200
commitd85e36a1156a25681d81c84ff1c0b47b4eb88a35 (patch)
tree919c6432b663917bba761397614027aedae155e5 /r8125/doinst.sh
downloadsbo-slackbuilds-d85e36a1156a25681d81c84ff1c0b47b4eb88a35.tar.gz
sbo-slackbuilds-d85e36a1156a25681d81c84ff1c0b47b4eb88a35.zip
Initial import: r8125, UrbanTerror
SBo-official packages maintained by danix, split out of my-slackbuilds. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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