Tak ten zajímavej skript vysavač bohužel nevezme. Asi mu něco chybí v busyboxu. No budu koumat dál a zatim používat ten můj paskvil. Debug log jsem tam dal,takže sem pak dám výpis.
Takže toto mi vyhodí : + aplay -c 1 -r 16000 -f S16_LE /usr/SNDDATA/SND_NOTICE_UPDATE_START.snd
Playing raw data '/usr/SNDDATA/SND_NOTICE_UPDATE_START.snd' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
+ cd /mnt/usb
+ sed 's|^\./||'
+ find . -maxdepth 1 -type f -not -iregex '.*\.sh'
+ read SRC
BusyBox v1.6.1 () multi-call binary
Usage: find [PATH...] [EXPRESSION]
Search for files in a directory hierarchy.  The default PATH is
the current directory; default EXPRESSION is '-print'
EXPRESSION may consist of:
	-follow		Dereference symlinks
	-name PATTERN	File name (leading directories removed) matches PATTERN
	-print		Print (default and assumed)
	-print0		Delimit output with null characters rather than
			newlines
	-type X		Filetype matches X (where X is one of: f,d,l,b,c,...)
	-perm PERMS	Permissions match any of (+NNN); all of (-NNN);
			or exactly (NNN)
	-mtime DAYS	Modified time is greater than (+N); less than (-N);
			Or exactly (N) days
	-mmin MINS	Modified time is greater than (+N); less than (-N);
			or exactly (N) minutes
	-newer FILE	Modified time is more recent than FILE's
	-inum N		File has inode number N
	-exec CMD	Execute CMD with all instances of {} replaced by the
			files matching EXPRESSION
	-user NAME	File is owned by user NAME (numeric user ID allowed)
	-group NAME	File belongs to group NAME (numeric group ID allowed)
	-depth		Process directory after traversing it
	-size N		File size is N
	-prune		Stop traversing current subtree
	-path		Path matches PATTERN
	(EXPR)		Group an expression
+ aplay -c 1 -r 16000 -f S16_LE /usr/SNDDATA/SND_NOTICE_UPDATE_END.snd
Playing raw data '/usr/SNDDATA/SND_NOTICE_UPDATE_END.snd' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
+ exit 0Zjevně tedy příkazu find v řádku "DST=$(find ./usr -name "$SRC" | head -n 1)" něco chybí. Problém bude v té proměnné. V ubuntu to chodí normálně,ale vysavač to nedá.