[package] block-mount: add missing chunk of previous commit
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 21 Mar 2012 02:29:47 +0000 (02:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 21 Mar 2012 02:29:47 +0000 (02:29 +0000)
SVN-Revision: 31050

package/block-mount/files/block.sh

index 80f74b2..ac8ca3b 100644 (file)
@@ -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"
 }