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 80f74b210b2f0d271340dd188ba7f074e28cc126..ac8ca3bfb1dfa52ef2081e67415d0088358ccd11 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"
 }