Doing some updates on the wardrivingbox ... / 2013-04-10

2013-04-10 Doing some updates on the wardrivingbox ... 6 years ago
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.

Tags: ,

, reachable as koos+website@idefix.net. PGP encrypted e-mail preferred.

PGP key 5BA9 368B E6F3 34E4 local copy PGP key 5BA9 368B E6F3 34E4 via keyservers pgp key statistics for 0x5BA9368BE6F334E4 Koos van den Hout
RSS
Other webprojects: Camp Wireless, wireless Internet access at campsites, The Virtual Bookcase, book reviews
This page generated in 0.003680 seconds.