The Following User Says Thank You to ric9K For This Useful Post: | ||
|
2019-11-19
, 19:19
|
|
Posts: 1,719 |
Thanked: 4,765 times |
Joined on Apr 2018
@ Helsinki, Finland.
|
#22
|
|
2019-11-19
, 20:28
|
Posts: 330 |
Thanked: 860 times |
Joined on May 2011
|
#23
|
Sorry. That was the trick yes. But wasn't it also neccessary to uppgrade openssl and certs? So sorry. Having a real brain malfunction at the moment and on the sick leave for it. Not the best to give working answers.
|
2019-11-20
, 14:53
|
|
Posts: 1,719 |
Thanked: 4,765 times |
Joined on Apr 2018
@ Helsinki, Finland.
|
#24
|
The Following User Says Thank You to Maemish For This Useful Post: | ||
|
2019-11-20
, 20:29
|
|
Posts: 868 |
Thanked: 2,516 times |
Joined on Feb 2012
@ Germany
|
#26
|
|
2019-11-20
, 21:56
|
Posts: 330 |
Thanked: 860 times |
Joined on May 2011
|
#27
|
...
For backupmenu it is somehow special, it could be that it generates something which will be later encrypted with an older openssl. The question is why it jumps over the password query and doesn't stop.
...
if [ -e /usr/share/backupmenu/lock-enable.txt ]; then #display password screen #clear display $T2S -c -x 16 -y 18 -w 768 -h 440 y=20 passhash=`cat /usr/share/backupmenu/lock-enable.txt` if [ -z "$passhash" ] || [ ! `expr length $passhash` == 13 ]; then passhash=`cat /etc/passwd | grep root |cut -d ':' -f 2` fi pass2dig=`echo "$passhash" | cut -c 1-2` for i in 1 2 3; do password="" $T2S -s 2 -H center -y $y -T 0 -t ">> Enter Password <<"; y=$((y+40)) $T2S -s 2 -H left -y $y -T 0x0000 -t " Alt/shift keys must be pressed one at a time" $T2S -s 2 -H left -y $y -T 0x0410 -t " Alt shift"; y=$((y+20)) getUserInputString 1 password=$inputString y=$((y+60)) encpass=`openssl passwd -crypt -salt "$pass2dig" "$password"` if [ $passhash == $encpass ]; then break fi $T2S -s 2 -H center -y $y -T 0xF800 -t "Password wrong."; y=$((y+20)) done ################################################## #Is the error here in next line? ################################################## if [ ! $passhash == $encpass ]; then $T2S -s 2 -H center -y $y -T 0xF800 -t "You have entered an incorrect password 3 times"; y=$((y+20)) $T2S -s 2 -H center -y $y -T 0xF800 -t "Rebooting in 30 seconds."; y=$((y+20)) sleep 30 reboot -f sleep 60 fi fi
if [ ! $passhash == $encpass ]; then
if [ ! x$passhash == x$encpass ]; then
if [ ! "x"$passhash == "x"$encpass ]; then
if [ ! "$passhash" = "$encpass" ]; then
|
2019-11-20
, 23:01
|
|
Posts: 868 |
Thanked: 2,516 times |
Joined on Feb 2012
@ Germany
|
#28
|
Isn't it the same root?
Is it a kind of initramsomething and not the definitive root filesystem?
But in this case, why is the new openssl installed on it?
cp /usr/lib/libssl.so.0.9.8 /tmp/disk/usr/lib/
|
2019-11-21
, 00:44
|
|
Posts: 304 |
Thanked: 1,246 times |
Joined on Aug 2015
|
#29
|
[...] Instead of
Shouldn't we write this?Code:if [ ! $passhash == $encpass ]; then
Code:if [ ! x$passhash == x$encpass ]; then
"
==
if [ ! "$passhash" = "$encpass" ]; then
The Following 4 Users Say Thank You to olf For This Useful Post: | ||
|
2019-11-21
, 07:43
|
Posts: 330 |
Thanked: 860 times |
Joined on May 2011
|
#30
|
I don't do backups. I do reflashes. About twenty in two years. Messing a lot. Almost brick device when once installed backup and tried to recover from there. Never again.
The Following User Says Thank You to ric9K For This Useful Post: | ||
Delicious!!!
Lots og thanks to you guys for the help.
Some more month/years to go, no Fx to buy, beautyfull.