Bug#221533: This is not a proper fix.
reopen 221533
thanks
Hello,
As explained on the mailing list and on irc, this is not a proper fix,
since it will result in a two time error message when airport card is
not present or when the subarch doesn't support airport cards.
A proper fix would do the following :
1) test that we are on newworld pmac. No oldworld or non pmac
subarches will have airport cards.
2) if we are on newworld pmac, check /proc/device-tree for a mac-io
mode, and if this node contains a child named radio, then we have an
airport card. I believe that this node even has more info that what we
need. I suppose that for 2.6 kernels we could even use /sys for that,
but we will need to check the exact paths used, and my ibook doesn't
run 2.6 right now.
Algorithm proposal :
db_get debian-installer/kernel/subarchitecture
SUBARCH="$RET"
if [ $SUBARCH = powermac_newworld ]; then
if [ -e /proc/device-tree/aliases/mac-io ]; then
if [ -e /proc/device-tree/`cat /proc/device-tree/aliases/mac-io`/radio ]; then
/* do magic airport loading */
fi
fi
fi
Unless there is opposition about this, i will implement this during this
WE at the Munich BSP.
Friendly,
Sven Luther
Reply to: