X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=fbf61fea8dfe4dd101da3ce0bc6cbc1a50c04352;hb=98d50bab610dd1f1295baddb50736846b65857ed;hp=79b158c95b5cc86c7a8ede2aaad108c82964d62f;hpb=be6b1ff8961f46a2bf51811bdd536c3d90239027;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index 79b158c..fbf61fe 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -104,7 +104,7 @@ where_is_mounted () if grep -q "^${device} " /proc/mounts then # return the first found - grep "^${device} " /proc/mounts | cut -f2 -d ' ' + grep -m1 "^${device} " /proc/mounts | cut -f2 -d ' ' fi }