slackbuilds_ponce/system/loggedfs/doinst.sh
B. Watson e0e452be7a system/loggedfs: Added (filesystem monitoring with FUSE).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-03-25 00:07:32 +00:00

11 lines
223 B
Bash

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