Correcting mountpoint of live medium in live-medium-eject.
authorDaniel Baumann <mail@daniel-baumann.ch>
Fri, 13 Jun 2014 19:28:59 +0000 (21:28 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Sat, 14 Jun 2014 05:31:12 +0000 (07:31 +0200)
bin/live-medium-eject

index 3e33bc6..9efcc57 100755 (executable)
@@ -41,7 +41,7 @@ done
 LIVE_MEDIUM_EJECT_VERBOSE="${LIVE_MEDIUM_EJECT_VERBOSE:-true}"
 
 # Ejecting live-medium
-_DEVICE="$(awk '/\/lib\/live\/medium / { print $1 }' /proc/mounts) | sed -e 's|/dev/||' -e 's|[0-9].*$||')"
+_DEVICE="$(awk '/\/lib\/live\/mount\/medium / { print $1 }' /proc/mounts) | sed -e 's|/dev/||' -e 's|[0-9].*$||')"
 
 if [ ! -b "/dev/${_DEVICE}" ]
 then