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

index e60fc3e..e42ae59 100755 (executable)
@@ -61,7 +61,7 @@ esac
 
 if [ -x "$(which eject 2> /dev/null)" ]
 then
-       eject -p -m ${_DEVICE} > /dev/null 2>&1
+       eject -p -m /dev/${_DEVICE} > /dev/null 2>&1
 fi
 
 case "${LIVE_MEDIUM_EJECT_VERBOSE}" in