Changeset 9566
- Timestamp:
- Aug 25, 2011, 1:39:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/import_scan_data.sh
r9564 r9566 15 15 16 16 echo "# unzip compressed .tar.gz files" 17 for FILE in `find $DATAROOT -name '*.tar.gz' `; do17 for FILE in `find $DATAROOT -name '*.tar.gz' | sort`; do 18 18 TARDIR=`dirname $FILE` 19 19 tar -C $TARDIR -xkzf $FILE … … 23 23 24 24 #Kismet netxml Imports 25 FILES="`find $DATAROOT -name '*netxml*' `"25 FILES="`find $DATAROOT -name '*netxml*' | sort`" 26 26 [ -n "$FILES" ] && $MANAGE import_kismet $ARGS $FILES 27 27 28 28 # Import all measure data 29 for USERDIR in `find $DATAROOT -m axdepth 1 -type d`; do30 for DEVICEDIR in `find $USERDIR -m axdepth 1 -type d`; do29 for 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 31 31 USERNAME=`basename $USERDIR` 32 32 DEVICE=`basename $DEVICEDIR` 33 33 ARGS="-g $USERNAME -e $USERNAME@wirelessleiden.nl -k $DEVICE" 34 34 35 echo $ARGS 35 36 #Kismet gpsxml Imports 36 FILES="`find $DEVICEDIR -name '* netxml*'` `find $DEVICEDIR -name '*gpsxml*'`"37 FILES="`find $DEVICEDIR -name '*gpsxml*'`" 37 38 [ -n "$FILES" ] && $MANAGE import_kismet $ARGS $FILES 38 39
Note:
See TracChangeset
for help on using the changeset viewer.