From 467e11c7392ed67f727e07c6348d2a7128a4cfc8 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sun, 1 Feb 2015 23:07:48 +0000 Subject: [PATCH] fix problem --- CONTROL/preinst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CONTROL/preinst b/CONTROL/preinst index f2f4590..46a1a21 100755 --- a/CONTROL/preinst +++ b/CONTROL/preinst @@ -1,7 +1,12 @@ #!/bin/sh f=/mod/etc/sweeper.conf -[ -f $f ] && cp $f $f~ +if [ -f $f ]; then + sum=`/mod/bin/busybox/md5sum $f | awk '{print $1}'` + if [ "$sum" != "a22cb1379fb9c58ae549dead9695eebe" ]; then + cp $f $f~ + fi +fi exit 0