summaryrefslogtreecommitdiffstats
path: root/system/rtirq/doinst.sh
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2014-01-16 07:07:43 +0700
committer Erik Hanson <erik@slackbuilds.org>2014-01-29 23:21:03 -0600
commited455ab7ee2dfc67e40346ec8904fb860154d482 (patch)
tree2a2fe5dadacd6190ed2c9bf0f1be701f9e59967d /system/rtirq/doinst.sh
parent669d3f8e8d4b713a2f4848564802a3874c4ea079 (diff)
downloadslackbuilds-ed455ab7ee2dfc67e40346ec8904fb860154d482.tar.gz
slackbuilds-ed455ab7ee2dfc67e40346ec8904fb860154d482.tar.xz
system/rtirq: Added (set priorities on kernel IRQ threads).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/rtirq/doinst.sh')
-rw-r--r--system/rtirq/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/rtirq/doinst.sh b/system/rtirq/doinst.sh
new file mode 100644
index 0000000000..2fdb8dddd1
--- /dev/null
+++ b/system/rtirq/doinst.sh
@@ -0,0 +1,14 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/rtirq.conf.new