Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit d2b9df1

Browse files
committed
filter net status using ip command instead
Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
1 parent 2bdba7a commit d2b9df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clr-init-flathub-repo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fi
3333

3434
# check for network availability prior to run the repo init command
3535
SECONDS=0
36-
while ! networkctl --no-legend list | grep -q configured ; do
36+
while ! ip a show | grep -q 'state UP' ; do
3737
if [ $SECONDS -gt 60 ] ; then
3838
echo "Network timeout: unable to init flahub repository"
3939
exit 1 ;

0 commit comments

Comments
 (0)