Changeset 10522 in genesis for tools/update-wlconfig


Ignore:
Timestamp:
Apr 17, 2012, 8:04:58 AM (13 years ago)
Author:
rick
Message:

More fancy updater...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/update-wlconfig

    r10309 r10522  
    44# a webbrowser
    55
    6 curl 'http://sunfire.wirelessleiden.nl/wleiden/config/?action=update'
     6INTERNAL_URL='http://sunny.wleiden.net/wleiden/config/?action=update&source=internal'
     7EXTERNAL_URL='http://sunfire.wirelessleiden.nl/wleiden/config/?action=update&source=external'
     8CLI=`whereis -b fetch wget curl false | awk '{if ($2) {print $2;exit}}'`
     9
     10
     11case `basename $CLI` in
     12 "wget") CLI_ARGS="-O - -nv";;
     13 "curl") CLI_ARGS="-o -";;
     14 "fetch") CLI_ARGS="-o -";;
     15 "false") echo "# no URL fetcher found"; exit 1;;
     16esac
     17
     18echo "# Processing please wait..."
     19$CLI $CLI_ARGS $INTERNAL_URL || $CLI $CLI_ARGS $EXTERNAL_URL
Note: See TracChangeset for help on using the changeset viewer.