slackbuilds_ponce/desktop/gtklock/doinst.sh
Jay Lanagan 63d81d1ac5
desktop/gtklock: Added (screen locker for Wayland)
Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-05-06 08:28:27 +07:00

12 lines
225 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/pam.d/gtklock.new