Get rid of the cut call and replace it with a shell substitution.

master
Robert "ar" Gerus 2013-05-02 04:32:58 +02:00
parent 4594b48848
commit 81e69c95e1
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ for var in $(cat /proc/cmdline); do
url="${url/|*}"
(
if [[ ${url_type} = "uuid" ]]; then
uuid="$(echo ${url} | /busybox cut -d / -f 1)"
uuid="${url%%/*}"
filepath="${url#*/}"
info "mounting $(findfs UUID="${uuid}") on /mnt"