Linux 连接到互联网以继续
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3677030/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Connect to internet to continue
提问by Ata
I there any way to force user to connect to internet , during installation ?
在安装过程中,我有什么方法可以强制用户连接到互联网?
回答by Ryan Hayes
You can check to ensure the user is connected before proceeding. That would be the best, most non-intrusive way of "forcing" them.
在继续之前,您可以检查以确保用户已连接。那将是“强迫”他们的最好、最非侵入性的方式。
Not knowing what language/technologies you are using, it's hard to answer the question, but simply check for a connection, and until one is found display a "please connect to the internet" message with an "ok" "cancel" option. Your user will typically like this much more than just automatically connecting. It's unlikely, however possible, that the user uses dial up or some other pay-per-bit service in which it would be polite to let the user make the decision to connect or not.
不知道您使用的是什么语言/技术,很难回答这个问题,但只需检查连接,直到找到一个连接,显示“请连接到互联网”消息和“确定”“取消”选项。您的用户通常会喜欢这不仅仅是自动连接。然而,用户不太可能使用拨号或其他一些按比特付费的服务,在这种情况下,让用户决定是否连接是礼貌的。