From: Jo-Philipp Wich Date: Wed, 21 Mar 2012 02:29:47 +0000 (+0000) Subject: block-mount: add missing chunk of previous commit X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2419c1370ac299eacc080ee21af105fb5146f427;p=openwrt%2Fstaging%2Fblocktrron.git block-mount: add missing chunk of previous commit SVN-Revision: 31050 --- diff --git a/package/block-mount/files/block.sh b/package/block-mount/files/block.sh index 80f74b210b..ac8ca3bfb1 100644 --- a/package/block-mount/files/block.sh +++ b/package/block-mount/files/block.sh @@ -157,7 +157,7 @@ libmount_find_token() { local token="$1" local value="$2" local device - device="$(blkid | grep "$token=\"$value\"" | cut -f1 -d:)" + device="$(blkid -w /dev/null -c /dev/null | grep "$token=\"$value\"" | cut -f1 -d:)" echo "$device" }