X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=fbf61fea8dfe4dd101da3ce0bc6cbc1a50c04352;hb=2c2184b6deff74fd2ea091edeee34efa08b74b09;hp=79b158c95b5cc86c7a8ede2aaad108c82964d62f;hpb=0ed041259b335664ca3f64d50f29cfb071e04100;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 }