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.

clean-all 430B

12345678910111213141516
  1. #!/bin/bash
  2. # Initialize the $KEY_DIR directory.
  3. # Note that this script does a
  4. # rm -rf on $KEY_DIR so be careful!
  5. if [ "$KEY_DIR" ]; then
  6. rm -rf "$KEY_DIR"
  7. mkdir "$KEY_DIR" && \
  8. chmod go-rwx "$KEY_DIR" && \
  9. touch "$KEY_DIR/index.txt" && \
  10. echo 01 >"$KEY_DIR/serial"
  11. else
  12. echo 'Please source the vars script first (i.e. "source ./vars")'
  13. echo 'Make sure you have edited it to reflect your configuration.'
  14. fi