diff options
author | B. Watson <yalhcru@gmail.com> | 2020-11-07 09:19:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-11-07 09:19:34 +0700 |
commit | 47a78898453311a5e9a99c9fa5e5a6f0e39c63c5 (patch) | |
tree | 8c9ffa1bbc1400decd5577268cbd65bbedc7a7eb /system/esekeyd/doinst.sh | |
parent | 7a488761668693ab154a8bc76bf5bcc00e128712 (diff) | |
download | slackbuilds-47a78898453311a5e9a99c9fa5e5a6f0e39c63c5.tar.gz |
system/esekeyd: Added (multimedia keyboard daemon for Linux).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/esekeyd/doinst.sh')
-rw-r--r-- | system/esekeyd/doinst.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/system/esekeyd/doinst.sh b/system/esekeyd/doinst.sh new file mode 100644 index 0000000000..b1bc6d67f6 --- /dev/null +++ b/system/esekeyd/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/esekeyd.conf.new |