Improve internet detection
Boot-Repair needs internet for various operations (install packages, purge and reinstall packages, pastebin).
This requires a reliable method to test if internet is available or not. It should work whatever the user configuration (wifi / routeur / IPv4 /v6 ...), and if possible with quick answer (to avoid latency in the UI).
Currently B-R determines if the user is connected to internet or not via the following way:
if [[ $(ping -c 1 www.ubuntu.com | grep "1 received") ]];then INTERNET=
This is slow and may not work if the user is behind a company/university router.
This should be improved.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Medium
- Drafter:
- YannUbuntu
- Direction:
- Approved
- Assignee:
- fefux
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- YannUbuntu
- Completed by
- YannUbuntu
Related branches
Related bugs
Bug #902751: Internet detection doesn't work behind a company/university router. | Fix Released |
Sprints
Whiteboard
Short-term: solution that works fast, and with routers
( http://
Medium-term: 2nd solution that downloads required packages (increases reliability of the "Purge" function):
NEEDEDPACKAGES=
( https:/
This 2nd idea will be developped in this other blueprint: https:/