Hello all- I recently install cryptsetup through Opkg and I am trying to automount my external drives through the autostart.sh script. Here is my code:
#!/bin/sh
Code
sleep 30
cryptsetup luksOpen /dev/disk/by-uuid/5d52d255-beb0-4de9-8ab6-cf7f6ad56b9a external1 --key-file=/storage/.config/keyfile
cryptsetup luksOpen /dev/disk/by-uuid/208fea3b-9d50-45aa-b370-kf46952384a6 external2 --key-file=/storage/.config/keyfile
cryptsetup luksOpen /dev/disk/by-uuid/85be45b1-9329-4f0c-9ebd-93905f665ac4 external3 --key-file=/storage/.config/keyfile
cryptsetup luksOpen /dev/disk/by-uuid/2357606b-644b-44a4-abc9-23451f8bd355 external4 --key-file=/storage/.config/keyfile
cryptsetup luksOpen /dev/disk/by-uuid/0892be8e-a55a-4790-ad22-4587f7aea6aa external5 --key-file=/storage/.config/keyfile
cryptsetup luksOpen /dev/disk/by-uuid/844e81c9-8e3c-4401-b690-22c07f7db83d external6 --key-file=/storage/.config/keyfile
cryptsetup luksOpen /dev/disk/by-uuid/97ca5d87-49c9-4c9c-acbb-87193df26fe4 external7 --key-file=/storage/.config/keyfile
mount /dev/mapper/external1 /storage/NFS/Disk1
mount /dev/mapper/external2 /storage/NFS/Disk2
mount /dev/mapper/external3 /storage/NFS/Disk3
mount /dev/mapper/external4 /storage/NFS/Disk4
mount /dev/mapper/external5 /storage/NFS/Disk5
mount /dev/mapper/external6 /storage/NFS/Disk6
mount /dev/mapper/external7 /storage/NFS/Disk7
Display More
When I do this, it just keeps endlessly rebooting after what seems like 30 seconds(maybe post getting through sleep 30)
My above script works flawlessly in Debian/Ubuntu but I am thinking that the same commands but not be valid in LibreElec. Any help would be appreciated!