changed generate_passwd() from tr to jot
This commit is contained in:
parent
252f824e1f
commit
90074477f2
|
@ -111,7 +111,8 @@ fetch_ipv6() {
|
||||||
generate_passwd() {
|
generate_passwd() {
|
||||||
# Generate a random password for the install-<MAC>.conf file.
|
# Generate a random password for the install-<MAC>.conf file.
|
||||||
# Doesn't take variables
|
# Doesn't take variables
|
||||||
tr -cd '[:alnum:]' < /dev/urandom | fold -w 20 | head -n 1
|
#tr -cd '[:alnum:]' < /dev/urandom | fold -w 20 | head -n 1
|
||||||
|
jot -rc -s '' 20 33 127
|
||||||
}
|
}
|
||||||
|
|
||||||
check_instance() {
|
check_instance() {
|
||||||
|
|
Loading…
Reference in New Issue