For example i have this
Code: Select all
#!/bin/bash
serial=$(cat /proc/cpuinfo | awk '/Serial/ {print $3}' | tail -c 9)
while [ $serial != "1111111" ] || [ $serial != "2222222" ]; do
echo "test"
done
The problem is for example one of the pi serial is "2222222" but the pi still echos "test"
Those anyone knows the problem? Appreciate the help.