2013-04-10
Doing some updates on the wardrivingbox ...
Doing some updates on the wardrivingbox for a friend. It would be really nice if that box would be able to sync its results to an usbstick. So I was trying to find the right flags for rsync to copy the results and kept failing.rsync: mkstemp "/mnt/kismet/.dabox-00:0D:B9:0D:98:50-20061010-1.csv.MK38RC" failed: Invalid argument (22)and then it dawned on me: filenames with an : in them are invalid in vfat (ms-dos and derived). The filenames are derived from the ethernet address of the wired networkcard in the wardrivingbox. Solution: strip the colons when generating the filename:LOGNAME=dabox-`/sbin/ifconfig eth0 | /usr/bin/awk ' $4=="HWaddr" { a=$5; gsub(/:/, "", a ); print a } '`Now filenames are more acceptable to the vfat filesystem on the usbstick.