mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2026-01-12 02:42:21 +02:00
fix device check
This commit is contained in:
4
debian/scripts/iobroker_startup.sh
vendored
4
debian/scripts/iobroker_startup.sh
vendored
@@ -383,12 +383,12 @@ if [[ "$usbdevices" != "" && "$usbdevices" != "none" ]]; then
|
||||
IFS=';' read -ra devicearray <<< "$usbdevices"
|
||||
for i in "${devicearray[@]}"
|
||||
do
|
||||
if [[ -f $i ]]; then
|
||||
if [[ -e $i ]]; then
|
||||
echo -n "Setting permissions for "$i"... "
|
||||
chown root:dialout $i
|
||||
chmod g+rw $i
|
||||
echo 'Done.'
|
||||
if [[ "$debug" == "true" ]]; then echo "[DEBUG] Permissions set to: " $(ls -al $i); fi
|
||||
if [[ "$debug" == "true" ]]; then echo "[DEBUG] Permissions set: " $(ls -al $i); fi
|
||||
else
|
||||
echo "Looks like the device \""$i"\" does not exist."
|
||||
echo "Did you mount it correctly by using the \"--device\" option?"
|
||||
|
||||
Reference in New Issue
Block a user