diff options
author | pyllyukko <pyllyukko@maimed.org> | 2022-04-23 03:26:47 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-24 01:47:22 +0700 |
commit | 5ed026533ab2e3f8e53c66b229bd1a31b4485ab3 (patch) | |
tree | e3d4270f7492e5a2ee514693ee7a9c67070897ba /system/mpollux-digisign-client/doinst.sh | |
parent | ee4b6888479b3425921e399ab59a4e0dbc7a9e17 (diff) |
system/mpollux-digisign-client: Added (smart card middleware).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mpollux-digisign-client/doinst.sh')
-rw-r--r-- | system/mpollux-digisign-client/doinst.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/system/mpollux-digisign-client/doinst.sh b/system/mpollux-digisign-client/doinst.sh new file mode 100644 index 0000000000..c82fe254cd --- /dev/null +++ b/system/mpollux-digisign-client/doinst.sh @@ -0,0 +1,18 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +config etc/xdg/Fujitsu/CCryptoLib.conf.new |