diff options
author | Aaditya Bagga <aaditya_gnulinux@zoho.com> | 2017-06-14 18:09:49 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-06-15 18:35:59 +0700 |
commit | b07e8752504542a1b892eed5963451a62f602007 (patch) | |
tree | b6cad3a1a6e21820db00050a2044a6c1f4e2b49b /system/geoclue2/doinst.sh | |
parent | 69cf554566a68aa7990a9e49472281f4110db884 (diff) |
system/geoclue2: Added (location information service).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/geoclue2/doinst.sh')
-rw-r--r-- | system/geoclue2/doinst.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/system/geoclue2/doinst.sh b/system/geoclue2/doinst.sh new file mode 100644 index 0000000000000..88ae88eb2d7cb --- /dev/null +++ b/system/geoclue2/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... +} + +config etc/geoclue/geoclue.conf.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi |