[ARMedslack] Raspberry Pi support for Slackware ARM 14.1

Stuart Winter m-lists at biscuit.org.uk
Sat Jun 15 17:38:45 UTC 2013


> > > if [ "$( grep "versatile\|BCM2708" /proc/cpuinfo )" !="" -a -s
> > > $FSTAB ]; then

This is incorrect usage.  The '|' means 'OR', and by escaping it with '\'
you're preventing grep from mapping '|' to that 'OR' meaning.
Also, the ARM versatile platform has a capital V in /proc/cpuinfo, so if
you tested it there, then it's matching something other than 'versatile'
since you did not call grep with -i.

> > > Also tested on Raspberry Pi and QEMU ARM-Versatile, I don't know why
> > > the alternation is being missed in egrep. My grep is version 2.14,
> > > am I out of date?

If you were to test it outside of the installer, the script works as it should.

Calling 'grep' from a symlink called 'egrep' simply saves you passing
the -E option to grep.   I suspect that the issue is because in the
installer, the grep binary is called 'grep.bin' (probably legacy - I can't find
any reason for it to be named this - I can only guess that we had the
'grep' functionality of busybox available in the past, and wanted to be
able to use both versions) and when named as such, it doesn't respect
the name it was originally called as, thus not switching on the '-E'
functionality.

I've changed the script to use grep -E rather than 'egrep', and it works
inside the installer now.  I'll upload those once I've tried Linux 3.9.6
with gcc 3.8.1 (although apparently it won't work, but I might as well
give it a go).

Cheers
s.

-- 
Stuart Winter
Slackware ARM: http://arm.slackware.com


More information about the ARMedslack mailing list