on first start generate password with 16 chars

This commit is contained in:
Miroslav Lichvar 2011-09-06 15:45:43 +02:00
parent 41ca1738b6
commit 87e9b122a8

View File

@ -32,7 +32,7 @@ generate_commandkey() {
commandkey=$(get_key $commandkeyid)
[ -z "$commandkey" ] || return 0
commandkey=$(tr -c -d '[\041-\176]' < /dev/urandom | head -c 8)
commandkey=$(tr -c -d '[\041-\176]' < /dev/urandom | head -c 16)
[ -n "$commandkey" ] && echo "$commandkeyid $commandkey" >> $keyfile
}