diff options
Diffstat (limited to 'system/kmscon/doinst.sh')
-rw-r--r-- | system/kmscon/doinst.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/system/kmscon/doinst.sh b/system/kmscon/doinst.sh new file mode 100644 index 0000000000000..d7468f28c9dd8 --- /dev/null +++ b/system/kmscon/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/kmscon/kmscon.conf.new |