Skip to content
Snippets Groups Projects
Commit 471d162d authored by Martin Strbacka's avatar Martin Strbacka
Browse files

Added script for setting root passwd.

parent 9656fc65
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