Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
478 B

#!/bin/sh
# Create group and users if needed
if ! grep ^tss: /etc/group > dev/null ; then
/usr/sbin/groupadd -g 282 tss
fi
if ! grep ^tss: /etc/passwd > /dev/null ; then
/usr/sbin/useradd -u 282 -c "TPM2 Software Stack" -d /var/lib/tpm2-tss -g tss tss
fi
# Set ownership and permissions
chown -R tss:tss /var/lib/tpm2-tss /var/run/tpm2-tss
chmod -R 755 /var/lib/tpm2-tss /var/run/tpm2-tss
# Reload and apply udev rules
udevadm control --reload-rules
udevadm trigger