c38e52a3c0
Obtained from: http://bsssd.sourceforge.net/
41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
--- usr/sbin/pkcs11_startup/pkcs11_startup.in.orig 2010-07-29 21:28:41.000000000 +0900
|
|
+++ usr/sbin/pkcs11_startup/pkcs11_startup.in 2010-10-22 00:57:35.508983672 +0900
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/bash
|
|
+#!/bin/sh
|
|
|
|
#
|
|
#
|
|
@@ -310,29 +310,20 @@
|
|
|
|
|
|
# Create the pkcs11 group if it does not exist...
|
|
-cat /etc/group|grep pkcs11 >/dev/null 2>&1
|
|
+cat /etc/group|grep @PKCS11GROUP@ >/dev/null 2>&1
|
|
rc=$?
|
|
if [ $rc = 1 ]
|
|
then
|
|
if [ -x @GROUPADD@ ]
|
|
then
|
|
- @GROUPADD@ pkcs11 >/dev/null 2>&1
|
|
+ @GROUPADD@ @PKCS11GROUP@ >/dev/null 2>&1
|
|
|
|
else
|
|
- echo "Couldn't execute @GROUPADD@. Please add the group 'pkcs11' manually."
|
|
+ echo "Couldn't execute @GROUPADD@. Please add the group '@PKCS11GROUP@' manually."
|
|
fi
|
|
fi
|
|
|
|
|
|
-if [ -x @USERMOD@ -a -x @ID@ ]
|
|
-then
|
|
- # add the pkcs group
|
|
- # replace spaces by commas
|
|
- @USERMOD@ -G $( @ID@ --groups --name root | @SED@ -e 'y/ /,/'),pkcs11 root
|
|
-else
|
|
- echo "Couldn't execute @USERMOD@. Please add root to the group 'pkcs11' manually."
|
|
-fi
|
|
-
|
|
|
|
# For each card run the status command and if successful
|
|
# create the odm stanza for the file
|