Changeset 14172 in hybrid


Ignore:
Timestamp:
May 22, 2018, 8:03:03 PM (7 years ago)
Author:
rick
Message:

Add override work-around for BASEURL if others fail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-11/nanobsd/files/tools/wl-config

    r14130 r14172  
    1111
    1212check_access() {
     13  if [ -n "$BASEURL" ]; then
     14     # Custom URL
     15     fetch -o /dev/null -q $BASEURL > /dev/null && return
     16     echo "# CRIT: Fetch via custom $BASEURL failed"
     17     # Do no check alternative routes, operator knows best
     18     exit 1
     19  fi
     20
    1321  # Direct Access - External
    1422  BASEURL="http://wirelessleiden.nl/config/"
     
    2533  BASEURL="http://80.127.152.29/wleiden/config/"
    2634  fetch -o /dev/null -q $BASEURL > /dev/null && return
    27   echo "# CRIT: Fetch via external $BASEURL failed"
    28 
     35  echo "# WARN: Fetch via external $BASEURL failed"
     36
     37  echo "# CRIT: No more fetch options available, bailing out"
    2938  exit 1
    3039}
Note: See TracChangeset for help on using the changeset viewer.