Changeset 9823 for src/django_gheat/import_scan_data.sh
- Timestamp:
- Dec 23, 2011, 9:16:20 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/import_scan_data.sh
r9777 r9823 59 59 done 60 60 61 #Kismet netxml Imports62 FILES="`find $DATAROOT -name '*netxml*' | sort`"63 [ -n "$FILES" ] && $MANAGE import_datafile $ARGS $FILES64 65 61 # Import all measure data 66 62 for USERDIR in `find $DATAROOT -mindepth 1 -maxdepth 1 -type d | sort`; do … … 70 66 ARGS="-g $USERNAME -e $USERNAME@wirelessleiden.nl -k $DEVICE" 71 67 68 echo "# INFO: Processing $USERNAME/$DEVICE" 72 69 # DroidStumber imports 73 70 FILES=`find $DEVICEDIR -name 'ScanResult-*'` 74 [ -n "$FILES" ] && $MANAGE import_datafile $ARGS $FILES 71 if [ -n "$FILES" ]; then 72 $MANAGE import_datafile $ARGS $FILES 73 fi 75 74 76 #Kismet gpsxmlImports75 #Kismet Imports 77 76 FILES="`find $DEVICEDIR -name '*gpsxml*'`" 78 [ -n "$FILES" ] && $MANAGE import_datafile $ARGS $FILES 77 for GPSXML in $FILES; do 78 NETXML=`echo $GPSXML | sed 's/gpsxml/netxml/g' ` 79 $MANAGE import_datafile $ARGS $NETXML $GPSXML 80 done 79 81 80 # Kismetimports82 # NetStumbler imports 81 83 FILES=`find $DEVICEDIR -name '*.ns1'` 82 [ -n "$FILES" ] && $MANAGE import_datafile $ARGS $FILES 84 if [ -n "$FILES" ]; then 85 $MANAGE import_datafile $ARGS $FILES 86 fi 83 87 done 84 88 done
Note:
See TracChangeset
for help on using the changeset viewer.