slackbuilds_ponce/system/kmscon/doinst.sh
B. Watson c9082984bb system/kmscon: Added (KMS/DRM based System Console).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2014-10-17 08:52:55 +07:00

11 lines
229 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/kmscon/kmscon.conf.new