slackbuilds_ponce/system/esekeyd/doinst.sh
B. Watson 47a7889845 system/esekeyd: Added (multimedia keyboard daemon for Linux).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2020-11-07 09:19:34 +07: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/esekeyd.conf.new