Browse Source

test result of password config

dev
rootzoll 6 years ago
parent
commit
b965d56cae
  1. 4
      home.admin/00mainMenu.sh
  2. 10
      home.admin/config.scripts/blitz.setpassword.sh

4
home.admin/00mainMenu.sh

@ -378,8 +378,8 @@ case $CHOICE in
sudo shutdown -r now
;;
PASSWORD)
sudo /home/admin/config.scripts/blitz.setpassword.sh
echo "Press ENTER to Reboot."
result=$(sudo /home/admin/config.scripts/blitz.setpassword.sh)
echo "Press ENTER to Reboot. (${result})"
read key
sudo shutdown -r now
;;

10
home.admin/config.scripts/blitz.setpassword.sh

@ -4,6 +4,7 @@
if [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
echo "small config script to set a passwords A,B,C & D"
echo "blitz.setpassword.sh [?a|b|c|d] [?newpassword] "
echo "exits on 0 = needs reboot"
exit 1
fi
@ -131,6 +132,7 @@ if [ "${abcd}" = "a" ]; then
echo ""
echo "OK - password A changed for user pi, root, admin & bitcoin"
exit 0
############################
# PASSWORD B
@ -199,6 +201,7 @@ elif [ "${abcd}" = "b" ]; then
echo "OK -> RPC Password B changed"
echo "if services are running - reboot is needed to activate new settings"
exit 0
############################
# PASSWORD C
@ -231,6 +234,7 @@ elif [ "${abcd}" = "c" ]; then
# final user output
echo ""
echo "OK"
exit 0
############################
# PASSWORD D
@ -238,10 +242,10 @@ elif [ "${abcd}" = "d" ]; then
echo "#### NOTICE ####"
echo "Sorry - the password D cannot be changed. Its the password you set on creating your wallet to protect your seed (the list of words)."
exit 1
# everything else
else
echo "FAIL: there is no password '${abcd}' (reminder: use lower case)"
fi
echo ""
exit 1
fi
Loading…
Cancel
Save