Changeset 9566


Ignore:
Timestamp:
Aug 25, 2011, 1:39:39 PM (13 years ago)
Author:
rick
Message:

Make the output sorted for more easier debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/import_scan_data.sh

    r9564 r9566  
    1515
    1616echo "# unzip compressed .tar.gz files"
    17 for FILE in `find $DATAROOT -name '*.tar.gz'`; do
     17for FILE in `find $DATAROOT -name '*.tar.gz' | sort`; do
    1818  TARDIR=`dirname $FILE`
    1919  tar -C $TARDIR -xkzf $FILE
     
    2323
    2424#Kismet netxml Imports
    25 FILES="`find $DATAROOT -name '*netxml*'`"
     25FILES="`find $DATAROOT -name '*netxml*' | sort`"
    2626[ -n "$FILES" ] && $MANAGE import_kismet $ARGS $FILES
    2727
    2828# Import all measure data
    29 for USERDIR in `find $DATAROOT -maxdepth 1 -type d`; do
    30   for DEVICEDIR in `find $USERDIR -maxdepth 1 -type d`; do
     29for USERDIR in `find $DATAROOT -mindepth 1 -maxdepth 1 -type d | sort`; do
     30  for DEVICEDIR in `find $USERDIR -mindepth 1 -maxdepth 1 -type d | sort`; do
    3131    USERNAME=`basename $USERDIR`
    3232    DEVICE=`basename $DEVICEDIR`
    3333    ARGS="-g $USERNAME -e $USERNAME@wirelessleiden.nl -k $DEVICE"
    3434
     35    echo $ARGS
    3536    #Kismet gpsxml Imports
    36     FILES="`find $DEVICEDIR -name '*netxml*'` `find $DEVICEDIR -name '*gpsxml*'`"
     37    FILES="`find $DEVICEDIR -name '*gpsxml*'`"
    3738    [ -n "$FILES" ] && $MANAGE import_kismet $ARGS $FILES
    3839
Note: See TracChangeset for help on using the changeset viewer.