From ed455ab7ee2dfc67e40346ec8904fb860154d482 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 16 Jan 2014 07:07:43 +0700 Subject: system/rtirq: Added (set priorities on kernel IRQ threads). Signed-off-by: Willy Sudiarto Raharjo --- system/rtirq/doinst.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 system/rtirq/doinst.sh (limited to 'system/rtirq/doinst.sh') 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 -- cgit v1.2.3