Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-05-02 Thread Erich Titl
Hi Jean-Roch

Am 02.05.2017 um 21:47 schrieb Jean-Roch Blais:
> Hello Erich, and List…
>
...

>>
>> So it looks like the check is correct now
>>
>> cheers
>>
>> ET
>>
>>
> This is great, thanks for showing/sharing how you tested this.  This is good 
> teaching :-) ! and it works !!!

You are most welcome

ET



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-05-02 Thread Jean-Roch Blais
Hello Erich, and List…

> Le 1 mai 2017 à 11:13, Erich Titl  a écrit :
> 
> Hi Jean-Roch
> 
> As you observed, upgrade was broken with the check_wget_dependency function. 
> A fix is available in git maint and my tests for wget have shown positive 
> results.
> 
> This is an old LEAF router with double radio which allows me to connect to a 
> shore based WLAN network.
> 
> SALT# cat /etc/motd
> LEAF Bering-uClibc 5.2.2 Rev 1 uClibc 0.9.33.2  at SALT
> Linux 4.1.13-geode #1 Sat Nov 21 21:38:26 CET 2015
> 
> SALT# rm /usr/bin/wget
> SALT# ln -s /bin/busybox /usr/bin/wget
> SALT# upgrade -c
> upgrade: WGET SSL functionality is missing, please install openssl.lrp
> aborting: check_wget_dependencies
> upgrade: abort check_wget_dependencies
> 
> SALT# apkg -i /mnt/openssl
> openssl installed.
> SALT# upgrade -c
> 5.2.8
> upgrade: upgrade terminated successfully
> 
> This is with an old non SSL wget package
> 
> SALT# rm /usr/bin/wget
> SALT# apkg -u /mnt/wget
> Commit changes? (y/n)y
> wget upgraded.
> SALT# upgrade -c
> upgrade: WGET SSL functionality is missing, please install a SSL enabled wget 
> package
> aborting: check_wget_dependencies
> upgrade: abort check_wget_dependencies
> 
> SALT# rm /usr/bin/wget
> SALT# apkg -u /mnt/wget-ssl
> Commit changes? (y/n)y
> wget-ssl upgraded.
> SALT# upgrade -c
> 5.2.8
> upgrade: upgrade terminated successfully
> 
> So it looks like the check is correct now
> 
> cheers
> 
> ET
> 
> 
This is great, thanks for showing/sharing how you tested this.  This is good 
teaching :-) ! and it works !!!

jrb.

> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! 
> http://sdm.link/slashdot
> leaf-user mailing list: leaf-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> Support Request -- http://leaf-project.org/


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-05-01 Thread Erich Titl

Hi Jean-Roch

As you observed, upgrade was broken with the check_wget_dependency 
function. A fix is available in git maint and my tests for wget have 
shown positive results.


This is an old LEAF router with double radio which allows me to connect 
to a shore based WLAN network.


SALT# cat /etc/motd
LEAF Bering-uClibc 5.2.2 Rev 1 uClibc 0.9.33.2  at SALT
Linux 4.1.13-geode #1 Sat Nov 21 21:38:26 CET 2015

SALT# rm /usr/bin/wget
SALT# ln -s /bin/busybox /usr/bin/wget
SALT# upgrade -c
upgrade: WGET SSL functionality is missing, please install openssl.lrp
aborting: check_wget_dependencies
upgrade: abort check_wget_dependencies

SALT# apkg -i /mnt/openssl
openssl installed.
SALT# upgrade -c
5.2.8
upgrade: upgrade terminated successfully

This is with an old non SSL wget package

SALT# rm /usr/bin/wget
SALT# apkg -u /mnt/wget
Commit changes? (y/n)y
wget upgraded.
SALT# upgrade -c
upgrade: WGET SSL functionality is missing, please install a SSL enabled 
wget package

aborting: check_wget_dependencies
upgrade: abort check_wget_dependencies

SALT# rm /usr/bin/wget
SALT# apkg -u /mnt/wget-ssl
Commit changes? (y/n)y
wget-ssl upgraded.
SALT# upgrade -c
5.2.8
upgrade: upgrade terminated successfully

So it looks like the check is correct now

cheers

ET




smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-04-29 Thread Erich Titl

Hi Jean-Roch

Am 30.04.2017 um 02:00 schrieb Jean-Roch Blais:

Hello Erich,


Le 29 avr. 2017 à 17:49, Erich Titl  a écrit :

Hi Jean-Roch





So it is either or...

this is just to check if openssl (on a new system) or wget-ssl (on older 
systems) is installed.

Unfortunately you can blow this check by installing wget, which will hide the 
busybox wget and on new systems there is no wget-ssl.

The check is broken, but to tell you the truth, I would not know right now how 
to fix this corner case. Need to think


I just hope I didn’t mess up you cruise :-) !!! No rush really, manual update 
is still possible after all !



No trouble, got my crew to Pointe à Pitre and internet access :-)

So this is the puzzle

Basically we need first a consistent check if the currently installed 
wget handles ssl. So we need a target which can consistantly be checked 
using https. If this does not work, then we need to determine the reason.


If wget is installed, how do we check that it handles ssl
else if wget-ssl is installed, everything is fine
else we need openssl and then everything ist fine

unless some crazehead installs his own bloody version of wget :-)

cheers

ET



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-04-29 Thread Jean-Roch Blais
Hello Erich,

> Le 29 avr. 2017 à 17:49, Erich Titl  a écrit :
> 
> Hi Jean-Roch
> 
> Am 29.04.2017 um 19:03 schrieb Jean-Roch Blais:
>> Hello kp,
>> 
>>> Le 29 avr. 2017 à 11:00, kp kirchdoerfer  a 
>>> écrit :
>>> 
>>> Am Freitag, 28. April 2017, 23:09:10 schrieb Jean-Roch Blais:
 Hello list,
 
 is there a reason why wget-ssl.lrp is missing from Buc 6.0.2 rev 1 and 
 maybe
 others distributions. It is required to perform a webconf firmware upgrade…
 https://sourceforge.net/p/leaf/bering-uclibc/ci/143fcc117549efc0d6bd42de141
 cdfb7de8fca6c/tree/repo/config/upgrade
  ’s function "check
 wget_dependencies" checks for this.
> 
> this is the error message
> 
>log "$PROGRAM is missing WGET SSL functionality"
>log "please install either openssl.lrp or a SSL enabled wget package"
>echo "$PROGRAM is missing WGET SSL functionality"
>echo "please install either openssl.lrp or a SSL enabled wget package"
>abort "check wget dependencies"
> 
> So it is either or...
> 
> this is just to check if openssl (on a new system) or wget-ssl (on older 
> systems) is installed.
> 
> Unfortunately you can blow this check by installing wget, which will hide the 
> busybox wget and on new systems there is no wget-ssl.
> 
> The check is broken, but to tell you the truth, I would not know right now 
> how to fix this corner case. Need to think
> 
I just hope I didn’t mess up you cruise :-) !!! No rush really, manual update 
is still possible after all ! 

thank’s a lot,

jrb.

> cheers
> 
> ET
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! 
> http://sdm.link/slashdot
> leaf-user mailing list: leaf-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> Support Request -- http://leaf-project.org/


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-04-29 Thread Erich Titl

Hi Jean-Roch

Am 29.04.2017 um 19:03 schrieb Jean-Roch Blais:

Hello kp,


Le 29 avr. 2017 à 11:00, kp kirchdoerfer  a écrit 
:

Am Freitag, 28. April 2017, 23:09:10 schrieb Jean-Roch Blais:

Hello list,

is there a reason why wget-ssl.lrp is missing from Buc 6.0.2 rev 1 and maybe
others distributions. It is required to perform a webconf firmware upgrade…
https://sourceforge.net/p/leaf/bering-uclibc/ci/143fcc117549efc0d6bd42de141
cdfb7de8fca6c/tree/repo/config/upgrade
 ’s function "check
wget_dependencies" checks for this.


this is the error message

log "$PROGRAM is missing WGET SSL functionality"
log "please install either openssl.lrp or a SSL enabled wget 
package"

echo "$PROGRAM is missing WGET SSL functionality"
echo "please install either openssl.lrp or a SSL enabled wget 
package"

abort "check wget dependencies"

So it is either or...

this is just to check if openssl (on a new system) or wget-ssl (on older 
systems) is installed.


Unfortunately you can blow this check by installing wget, which will 
hide the busybox wget and on new systems there is no wget-ssl.


The check is broken, but to tell you the truth, I would not know right 
now how to fix this corner case. Need to think


cheers

ET



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-04-29 Thread Erich Titl

Hi Jean-Roch

Am 29.04.2017 um 19:03 schrieb Jean-Roch Blais:

Hello kp,


Le 29 avr. 2017 à 11:00, kp kirchdoerfer  a écrit 
:

Am Freitag, 28. April 2017, 23:09:10 schrieb Jean-Roch Blais:

Hello list,

is there a reason why wget-ssl.lrp is missing from Buc 6.0.2 rev 1 and maybe
others distributions. It is required to perform a webconf firmware upgrade…
https://sourceforge.net/p/leaf/bering-uclibc/ci/143fcc117549efc0d6bd42de141
cdfb7de8fca6c/tree/repo/config/upgrade
 ’s function "check
wget_dependencies" checks for this.


Hi Jean-Roch;

I believe sometnig went wrong here;

wget and wget-ssl has been merged  AFAIR since 5.2.5.

The check seems wrong, it smells like a bug - we'll look into it.

Do you have openssl installed? In that case it should work with either wget or
busybox wget.


Ok, to set the clock right, I have to say I didn’t try to run upgrade yet, I was looking at the code to 
make sure I wouldn’t bust my firewall :-) ! … there is no doc. But looking at the code we see that it 
checks if openssl or wget-ssl is there, but then only uses "wget --no-check-certificate … etc 
etc…" to download the remote firmware… BusyBox's “wget" does not understand 
"—no-check-certificate" … hence my first questions !

In any case, my main concern/question is: is it safe to run upgrade ? Did you 
or do you use it ?

I guess backing-up my SD card is a good idea … I would like, of course, to keep 
the whole process as simple as possible, and it seems this was the whole 
upgrade purpose to start with.


Yes and a lot of time has passed since. LEAF being as flexible as it is 
is difficult to upgrade automatically.


In any case unless you boot your box, nothing is lost, you still have a 
working system. If you copied your entire storage then, at least on a 
grub based system, everything will be as before when you copy it back. 
Syslinux is a little different but not to the extent of making it 
impossible.


cheers

ET



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-04-29 Thread Erich Titl

Hi
for
Am 29.04.2017 um 05:09 schrieb Jean-Roch Blais:

Hello list,

is there a reason why wget-ssl.lrp is missing from Buc 6.0.2 rev 1 and maybe 
others distributions. It is required to perform a webconf firmware upgrade…
 
https://sourceforge.net/p/leaf/bering-uclibc/ci/143fcc117549efc0d6bd42de141cdfb7de8fca6c/tree/repo/config/upgrade
 

 ’s function "check wget_dependencies" checks for this.


AFAIK wget-ssl has been suppressed for wget, which includes the ssl 
libraries now. The dependency for wget-ssl is for older systems, you 
should be fine by just using openssl.lrp, which is used by the busybox 
wget implementation.


cheers

ET



smime.p7s
Description: S/MIME Cryptographic Signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-04-29 Thread Jean-Roch Blais
Hello kp,

> Le 29 avr. 2017 à 11:00, kp kirchdoerfer  a 
> écrit :
> 
> Am Freitag, 28. April 2017, 23:09:10 schrieb Jean-Roch Blais:
>> Hello list,
>> 
>> is there a reason why wget-ssl.lrp is missing from Buc 6.0.2 rev 1 and maybe
>> others distributions. It is required to perform a webconf firmware upgrade…
>> https://sourceforge.net/p/leaf/bering-uclibc/ci/143fcc117549efc0d6bd42de141
>> cdfb7de8fca6c/tree/repo/config/upgrade
>> > 1cdfb7de8fca6c/tree/repo/config/upgrade> ’s function "check
>> wget_dependencies" checks for this.
> 
> Hi Jean-Roch;
> 
> I believe sometnig went wrong here;
> 
> wget and wget-ssl has been merged  AFAIR since 5.2.5.
> 
> The check seems wrong, it smells like a bug - we'll look into it.
> 
> Do you have openssl installed? In that case it should work with either wget 
> or 
> busybox wget.
> 
Ok, to set the clock right, I have to say I didn’t try to run upgrade yet, I 
was looking at the code to make sure I wouldn’t bust my firewall :-) ! … there 
is no doc. But looking at the code we see that it checks if openssl or wget-ssl 
is there, but then only uses "wget --no-check-certificate … etc etc…" to 
download the remote firmware… BusyBox's “wget" does not understand 
"—no-check-certificate" … hence my first questions !

In any case, my main concern/question is: is it safe to run upgrade ? Did you 
or do you use it ?

I guess backing-up my SD card is a good idea … I would like, of course, to keep 
the whole process as simple as possible, and it seems this was the whole 
upgrade purpose to start with. 

thanks

jrb.

> kp 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> 
> leaf-user mailing list: leaf-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> Support Request -- http://leaf-project.org/


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-04-29 Thread kp kirchdoerfer
Am Freitag, 28. April 2017, 23:09:10 schrieb Jean-Roch Blais:
> Hello list,
> 
> is there a reason why wget-ssl.lrp is missing from Buc 6.0.2 rev 1 and maybe
> others distributions. It is required to perform a webconf firmware upgrade…
> https://sourceforge.net/p/leaf/bering-uclibc/ci/143fcc117549efc0d6bd42de141
> cdfb7de8fca6c/tree/repo/config/upgrade
>  1cdfb7de8fca6c/tree/repo/config/upgrade> ’s function "check
> wget_dependencies" checks for this.

Hi Jean-Roch;

I believe sometnig went wrong here;

wget and wget-ssl has been merged  AFAIR since 5.2.5.

The check seems wrong, it smells like a bug - we'll look into it.

Do you have openssl installed? In that case it should work with either wget or 
busybox wget.

kp 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


[leaf-user] wget-ssl.lrp missing in Buc 6.0.2 rev 1

2017-04-28 Thread Jean-Roch Blais
Hello list,

is there a reason why wget-ssl.lrp is missing from Buc 6.0.2 rev 1 and maybe 
others distributions. It is required to perform a webconf firmware upgrade…
 
https://sourceforge.net/p/leaf/bering-uclibc/ci/143fcc117549efc0d6bd42de141cdfb7de8fca6c/tree/repo/config/upgrade
 

 ’s function "check wget_dependencies" checks for this. 

Thanks !

jrb.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/