diff options
author | B. Watson <yalhcru@gmail.com> | 2014-10-17 08:52:55 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-10-17 08:52:55 +0700 |
commit | c9082984bbb9e4fe6790846a430d677a4d8c6b19 (patch) | |
tree | 566a831bae4dc72248f6597475c80043ececac55 /system/kmscon/doinst.sh | |
parent | b4adb046e5ef406d91a16c3e296c643c984acbaa (diff) | |
download | slackbuilds-c9082984bbb9e4fe6790846a430d677a4d8c6b19.tar.gz |
system/kmscon: Added (KMS/DRM based System Console).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 0000000000..d7468f28c9 --- /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 |