X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;h=35fb8cf81cbdb98d0f8caf42e336365bbc3900ef;hb=81f5b4978b7062df5193871c1087419dce294991;hp=c4fca957f7a5b76220497a13d1f8c56b1842486f;hpb=2451b1bba72063b403b1d6246034c1c8deedf92c;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index c4fca95..35fb8cf 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 } @@ -334,15 +334,8 @@ find_cow_device () do load_keymap - echo -n "Enter passphrase for ${pers_label} on ${devname}: " >&6 - read -s passphrase - echo "${passphrase}" > /tmp/passphrase - unset passphrase - exec 9/dev/null)" = "${pers_label}" ] then echo "${devname}" - return + return 0 fi if [ "${PERSISTENT}" = "nofiles" ] @@ -398,6 +391,7 @@ find_cow_device () esac done done + return 1 } find_files ()