diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-24 17:22:07 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-03-25 00:07:32 +0000 |
commit | e0e452be7a5fb0b23519441af3c4d60c6dd18a03 (patch) | |
tree | 658f907c472162b11b14e495d4cf5aced70f77c1 /system/loggedfs/doinst.sh | |
parent | 7588ac1bcec05944e2c93b54ab2cec7c2ea79b39 (diff) | |
download | slackbuilds-e0e452be7a5fb0b23519441af3c4d60c6dd18a03.tar.gz |
system/loggedfs: Added (filesystem monitoring with FUSE).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/loggedfs/doinst.sh')
-rw-r--r-- | system/loggedfs/doinst.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/system/loggedfs/doinst.sh b/system/loggedfs/doinst.sh new file mode 100644 index 0000000000..d630c9b28a --- /dev/null +++ b/system/loggedfs/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/loggedfs.xml.new |