Pięknie dziękuje skrypt działa.
Jest jeszcze problem z umount, tzn po wykonaniu skryptu do umount
umount: can't forcibly umount /tmp/usb_mount/1b2c3b6f-c082-405a-84ed-1003e51a642a: Device or resource busy
jak widze
/etc/init.d/minidlna stop nie kończy minidlna
4199 3158 root R 1504 1% 0% top
3059 1491 root S 1220 1% 0% /usr/sbin/dropbear -P /var/run/dropbe
4094 1 root S 20556 16% 0% /usr/sbin/minidlnad -f /tmp/minidlna.
1381 1 root S 1596 1% 0% hostapd -P /var/run/wifi-phy0.pid -B
893 1 root S 1512 1% 0% /sbin/syslogd -C16
4082 1 root S 1512 1% 0% /usr/sbin/crond -c /etc/crontabs -l 9
1120 1068 root S 1512 1% 0% udhcpc -p /var/run/udhcpc-eth0.2.pid
1 0 root S 1508 1% 0% init
3158 3059 root S 1508 1% 0% -ash
602 1 root S 1508 1% 0% init
2882 1 root S 1504 1% 0% /sbin/watchdog -t 5 /dev/watchdog
2588 1 root S 1500 1% 0% /usr/sbin/ntpd -n -p 0.europe.pool.nt
895 1 root S 1496 1% 0% /sbin/klogd
1068 1 root S 1476 1% 0% /sbin/netifd
2681 1 root S 1396 1% 0% /usr/sbin/rpc.mountd -p 32780 -F
2852 1 root S 1380 1% 0% /usr/bin/ddns_gargoyle -P /etc/ddns_p
1567 1 root S 1348 1% 0% httpd_gargoyle -c cgi-bin/**|**.sh|**
1491 1 root S 1156 1% 0% /usr/sbin/dropbear -P /var/run/dropbe
2659 1 root S 1068 1% 0% /usr/sbin/rpc.statd -p 32778 -o 32779
^C012 1 nobody S 1024 1% 0% /usr/sbin/portmap