Skip to content

Commit

Permalink
add support to generate password files
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Simon committed Aug 27, 2024
1 parent 45320a6 commit c45765c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions home/dot_config/zsh/rack_manager.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,30 @@ ssh-port-tunnelling() {
# implement port tunnelling
}

change-rm-password() {
if (( $# == 1 )); then
cat >~/.rm-pass <<EOF
#!/bin/bash
echo "${1}"
EOF
chmod +x ~/.rm-pass
else
echo "Usage: change-rm-password <password>"
fi
}

change-bmc-password() {
if (( $# == 1 )); then
cat >~/.bmc-pass <<EOF
#!/bin/bash
echo "${1}"
EOF
chmod +x ~/.bmc-pass
else
echo "Usage: change-bmc-password <password>"
fi
}

clean_control_chars() {
while IFS= read -r line; do
# remove KNOWN control characters. Leave the rest for now.
Expand Down

0 comments on commit c45765c

Please sign in to comment.