Skip to content

Commit e58a408

Browse files
szaimenenoch85
andauthored
speed up the network check if the network already works (#1912)
Signed-off-by: szaimen <[email protected]> Co-authored-by: Daniel Hansson <[email protected]>
1 parent 0038765 commit e58a408

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib.sh

+4
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,10 @@ version(){
995995
if version 18.04 "$DISTRO" 20.04.10
996996
then
997997
print_text_in_color "$ICyan" "Testing if network is OK..."
998+
if site_200 github.com
999+
then
1000+
return
1001+
fi
9981002
if ! netplan apply
9991003
then
10001004
systemctl restart systemd-networkd > /dev/null

0 commit comments

Comments
 (0)