diff options
Diffstat (limited to 'system/clusterglue/doinst.sh')
-rw-r--r-- | system/clusterglue/doinst.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/system/clusterglue/doinst.sh b/system/clusterglue/doinst.sh new file mode 100644 index 0000000000000..5a19c488c6423 --- /dev/null +++ b/system/clusterglue/doinst.sh @@ -0,0 +1,17 @@ +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 +} + +if [ -e etc/rc.d/rc.logd ]; then + cp -a etc/rc.d/rc.logd etc/rc.d/rc.logd.new.incoming + cat etc/rc.d/rc.logd.new > etc/rc.d/rc.logd.new.incoming + mv etc/rc.d/rc.logd.new.incoming etc/rc.d/rc.logd.new +fi + +config etc/rc.d/rc.logd.new |