From 214ac3b9f5240c18b09e079d8470ab3775a346d6 Mon Sep 17 00:00:00 2001 From: Marc Hillesheim Date: Mon, 22 Oct 2018 23:39:50 +0200 Subject: [PATCH] [script] Move media linking to startup script --- .../files/opt/crankshaft/service_usbdetect.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stage2/03-crankshaft-base/files/opt/crankshaft/service_usbdetect.sh b/stage2/03-crankshaft-base/files/opt/crankshaft/service_usbdetect.sh index f78ba11d..440ac944 100755 --- a/stage2/03-crankshaft-base/files/opt/crankshaft/service_usbdetect.sh +++ b/stage2/03-crankshaft-base/files/opt/crankshaft/service_usbdetect.sh @@ -39,6 +39,8 @@ for _device in /sys/block/sd*/device; do # Allow all users rw to CSSTORAGE and subfolders/files chmod -R 777 /media/${LABEL} > /dev/null 2>&1 chmown -R pi:pi /home/pi/.kodi > /dev/null 2>&1 + # Add media links + ln -s /media/CSSTORAGE/Music/* /media/MYMEDIA /usr/local/bin/crankshaft filesystem system lock CSSTORAGE_DETECTED=1 else