I want to have a simple script to search for a device model that has the ID of 0400. I am getting syntax error on the if line.
#!/bin/bash
lp=$(lspci -vvv | grep -ic "device 0400")
if [$lp -ne 2] 
then 
    echo "Card model is incorrect"
fi
I want to have a simple script to search for a device model that has the ID of 0400. I am getting syntax error on the if line.
#!/bin/bash
lp=$(lspci -vvv | grep -ic "device 0400")
if [$lp -ne 2] 
then 
    echo "Card model is incorrect"
fi
 
    
    