Browse Source

smarter default kernel selection


			
			
				rocklinux
			
			
		
Clifford Wolf 21 years ago
parent
commit
b62f83899a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      package/base/linux24/config-500.in

+ 3
- 1
package/base/linux24/config-500.in

@ -22,10 +22,12 @@
menu_begin MENU_PKG_LINUX 'Linux Kernel Options'
default='' ; list=''
kernels=$( grep KERNEL config/$config/packages | cut -d' ' -f5 | tr '\n' '|' )
while read pkg ver ; do
default=${default:-$pkg} ; [ $pkg = linux24 ] && default=linux24
list="$list $pkg Use_${pkg}_($ver)_as_standard_Kernel"
done < <(grep "^X .* KERNEL " config/$config/packages | cut -f5,6 -d' ')
done < <(grep -E "^X .* (${kernels%|}).* " config/$config/packages | cut -f5,6 -d' ' \
| sed -e 's,\([^-]*\)-[^ ]*,\1,g' | sort -u)
if [ -z "$default" ] ; then
default="none" ; list="none No_Standard_Kernel"
fi

Loading…
Cancel
Save