Skip to content
Snippets Groups Projects
Commit 3bee6464 authored by Robin Obůrka's avatar Robin Obůrka
Browse files

Merge branch 'master' of git.labs.nic.cz:turris/misc

parents 555dd75e 471d162d
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# Thanks to the bug in busybox sometimes uci-default script doesn't work
PASS=`grep root /etc/shadow | cut -d ':' -f2`
if [ $PASS == "x" ]; then
DUMMY_PASS=`tr -dc A-Za-z0-9_ < /dev/urandom | head -c 64`
echo -e "${DUMMY_PASS}\n${DUMMY_PASS}" | passwd root
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment