1
arch_get_kernel_flavour () {
2
VENDOR=`grep '^vendor_id' "$CPUINFO" | head -n1 | cut -d: -f2`
3
FAMILY=`grep '^cpu family' "$CPUINFO" | head -n1 | cut -d: -f2`
4
MODEL=`grep '^model[[:space:]]*:' "$CPUINFO" | head -n1 | cut -d: -f2`
5
NUMCPUS=`grep ^processor "$CPUINFO" | wc -l`
7
# Only offer smp if the system supports has more than one cpu
8
if test $NUMCPUS -gt "1" ; then
15
" 15"|" 16"|" 17"|" 18"|" 20") # k8
20
" 0"|" 1"|" 2"|" 3"|" 4"|" 5")
21
# May not have SSE support
31
" 6"|" 15") echo 686$SMP ;;
39
" 9"|" 10") echo 686$SMP ;;
53
arch_check_usable_kernel () {
54
if echo "$1" | grep -Eq -- "-486(-.*)?$"; then return 0; fi
55
if [ "$2" = 486 ]; then return 1; fi
56
if echo "$1" | grep -Eq -- "-686(-.*)?$"; then return 0; fi
57
if [ "$2" = 686 ] || [ "$2" = 686-smp ]; then return 1; fi
59
# default to usable in case of strangeness
60
warning "Unknown kernel usability: $1 / $2"
65
if [ "$1" = 686-smp ]; then
66
echo "kfreebsd-image-$KERNEL_MAJOR-686-smp"
68
if [ "$1" = 686 ]; then
69
echo "kfreebsd-image-$KERNEL_MAJOR-686"
71
echo "kfreebsd-image-$KERNEL_MAJOR-486"