aboutsummaryrefslogtreecommitdiff
path: root/system/cronie/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/cronie/doinst.sh')
-rw-r--r--system/cronie/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/cronie/doinst.sh b/system/cronie/doinst.sh
new file mode 100644
index 0000000000000..542e2e7b90497
--- /dev/null
+++ b/system/cronie/doinst.sh
@@ -0,0 +1,11 @@
+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/cron.deny.new