I'm trying to know whether a kernel is 64 or 32 in #!/bin/sh
.
I build this code!
krnl=$(uname -i)
# Check whether 64 or 32 bit kernel and download the correct version;
if [ $krnl='i386' ] ; then # 32
# Do 32-bits stuff
else
# Do 64-bits stuff
fi
But it seems to return always true. What I'm doing wrong, Why this is happening and how I can fix this? What I googled always show me in bash or doesn't work.
Thanks in advance!