added "install it" target
[gnt-info] / smart-query.sh
index 92a126c..e59836a 100755 (executable)
@@ -5,7 +5,7 @@ test -e /tmp/s.last && rm /tmp/s.last
 for col in "Device Model" "User Capacity" $*
 do
        # sed and sort is required for join later
-       grep "$col" /dev/shm/smart.sd? | sed \
+       grep "$col" /dev/shm/smart.sd* | sed \
                -e "s/$col: */ : /" \
                -e "s/[0-9]* $col .* \([0-9][0-9]*\)$/ : \1/" \
        | sort > /tmp/s.this