09.11.2012 Views

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

Contents - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

the card leaving it ready to boot. Available on GitHub (https://github.com/johnlane/rpiutils)<br />

. August 22nd, 2012.<br />

delay_copy.sh<br />

The idea: A script that copies files from an attached USB flash drive to the SDcard after<br />

a delay, allowing the user to unplug the keyboard or mouse and plug in the USB drive.<br />

The detail: See<br />

http://www.raspberrypi.org/?page_id=43&mingleforumaction=viewtopic&t=152.0<br />

The task: Write the script. Make it bullet proof.<br />

Automatic, no delay solution<br />

--Markit 21:24, 26 October 2011 (UTC)<br />

▪ Download devmon (http://igurublog.wordpress.com/downloads/script-devmon/) .<br />

▪ Start a daemon with<br />

▪ devmon --no-gui --exec-on-drive "cp -r /directory/to/copy/each/time<br />

%d;devmon --unmount-recent;echo Copy complete, safe to remove |<br />

wall"<br />

Tomato 23:38, 26 October 2011 (UTC)<br />

{<br />

}<br />

▪ "rsync -ac /directory/to/copy/each/time %d" might be better suited to transfer the<br />

files to the card.<br />

▪ "sync" to flush the buffers afterwards couldn't hurt either<br />

▪ Each time a usb key is added, the daemon will automatically copy the folder,<br />

unmount the disk and send a message to all connected local/ssh terminals.<br />

udev could also be used.<br />

RISC OS<br />

▪ Discussion and task list being developed on the ROOL site<br />

(http://www.riscosopen.org/forum/forums/5/topics/783) .

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!