Skip to content

Commit

Permalink
nc-automount: check for USBdrive labeled drive case
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Dec 4, 2017
1 parent 29da1b5 commit 030bbed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

[v0.41.1](https://github.com/nextcloud/nextcloudpi/commit/d472c6c) (2017-12-04) nc-info: warn of long operation
[v0.41.2](https://github.com/nextcloud/nextcloudpi/commit/f4dd242) (2017-12-04) nc-automount: check for USBdrive labeled drive case

[v0.41.1 ](https://github.com/nextcloud/nextcloudpi/commit/9ef8bc1) (2017-12-04) nc-info: warn of long operation

[v0.41.0](https://github.com/nextcloud/nextcloudpi/commit/d191176) (2017-12-04) updated to NC12.0.4

Expand Down
4 changes: 2 additions & 2 deletions etc/nextcloudpi-config.d/nc-automount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ ls -d /media/* &>/dev/null && {
i=0
for d in $( ls -d /media/* 2>/dev/null ); do
if [ $i -eq 0 ]; then
mountpoint -q "$d" && ln -sT "$d" /media/USBdrive
[[ -e /media/USBdrive ]] || mountpoint -q "$d" && ln -sT "$d" /media/USBdrive
else
mountpoint -q "$d" && ln -sT "$d" /media/USBdrive$i
[[ -e /media/USBdrive$i ]] || mountpoint -q "$d" && ln -sT "$d" /media/USBdrive$i
fi
i=$(( i + 1 ))
done
Expand Down

0 comments on commit 030bbed

Please sign in to comment.