From ae0d038ea9b267c97bcbb733ee0e443073ad0c6d Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Wed, 15 Mar 2017 12:26:13 -0500 Subject: remove ck; elogind default --- pcr/consolekit/pam-foreground-compat.ck | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 pcr/consolekit/pam-foreground-compat.ck (limited to 'pcr/consolekit/pam-foreground-compat.ck') diff --git a/pcr/consolekit/pam-foreground-compat.ck b/pcr/consolekit/pam-foreground-compat.ck deleted file mode 100644 index 90b8081e4..000000000 --- a/pcr/consolekit/pam-foreground-compat.ck +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -TAGDIR=/run/console - -[ -n "$CK_SESSION_USER_UID" ] || exit 1 - -TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`" - -if [ "$1" = "session_added" ]; then - mkdir -p "$TAGDIR" - echo "$CK_SESSION_ID" >> "$TAGFILE" -fi - -if [ "$1" = "session_removed" ] && [ -e "$TAGFILE" ]; then - sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE" - [ -s "$TAGFILE" ] || rm -f "$TAGFILE" -fi - -- cgit v1.2.3