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

  1. #!/bin/sh
  2. # Create group and users if needed
  3. if ! grep ^tss: /etc/group > dev/null ; then
  4. /usr/sbin/groupadd -g 282 tss
  5. fi
  6. if ! grep ^tss: /etc/passwd > /dev/null ; then
  7. /usr/sbin/useradd -u 282 -c "TPM2 Software Stack" -d /var/lib/tpm2-tss -g tss tss
  8. fi
  9. # Set ownership and permissions
  10. chown -R tss:tss /var/lib/tpm2-tss /var/run/tpm2-tss
  11. chmod -R 755 /var/lib/tpm2-tss /var/run/tpm2-tss
  12. # Reload and apply udev rules
  13. udevadm control --reload-rules
  14. udevadm trigger