summaryrefslogtreecommitdiffstats
path: root/system/asus-fanmode/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/asus-fanmode/doinst.sh')
-rw-r--r--system/asus-fanmode/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/asus-fanmode/doinst.sh b/system/asus-fanmode/doinst.sh
new file mode 100644
index 0000000000..d2aaeff119
--- /dev/null
+++ b/system/asus-fanmode/doinst.sh
@@ -0,0 +1,16 @@
+# $RCSfile: doinst.sh,v $
+# $Revision: 1.9 $
+# $Date: 2023-05-11 07:58:15+01 $
+# DW
+
+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/asus_fanmode.conf.new