Add support for 5.11 RC
(targets 5.11 rc2 by default as it's the current latest)
This commit is contained in:
14
linux-tkg-config/5.11/90-cleanup.hook
Normal file
14
linux-tkg-config/5.11/90-cleanup.hook
Normal file
@@ -0,0 +1,14 @@
|
||||
[Trigger]
|
||||
Type = File
|
||||
Operation = Install
|
||||
Operation = Upgrade
|
||||
Operation = Remove
|
||||
Target = usr/lib/modules/*/
|
||||
Target = !usr/lib/modules/*/?*
|
||||
|
||||
[Action]
|
||||
Description = Cleaning up...
|
||||
When = PostTransaction
|
||||
Exec = /usr/share/libalpm/scripts/cleanup
|
||||
NeedsTargets
|
||||
|
10
linux-tkg-config/5.11/cleanup
Executable file
10
linux-tkg-config/5.11/cleanup
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
for _f in /usr/lib/modules/*tkg*; do
|
||||
if [[ ! -e ${_f}/vmlinuz ]]; then
|
||||
rm -rf "$_f"
|
||||
fi
|
||||
done
|
||||
|
||||
# vim:set ft=sh sw=2 et:
|
||||
|
11246
linux-tkg-config/5.11/config.x86_64
Normal file
11246
linux-tkg-config/5.11/config.x86_64
Normal file
File diff suppressed because it is too large
Load Diff
@@ -5,6 +5,7 @@ ver57=19
|
||||
ver58=18
|
||||
ver59=16
|
||||
ver510=4
|
||||
ver511=rc2
|
||||
|
||||
_tkg_initscript() {
|
||||
# Load external configuration file if present. Available variable values will overwrite customization.cfg ones.
|
||||
@@ -27,7 +28,7 @@ _tkg_initscript() {
|
||||
|
||||
if [ -z "$_version" ] && [ ! -e "$_path"/versel ]; then
|
||||
plain "Which kernel version do you want to install?"
|
||||
read -rp "`echo $' 1. 5.4 LTS\n 2. 5.7\n 3. 5.8\n 4. 5.9\n > 5. 5.10\nchoice[1-5?]'`" _VERSEL;
|
||||
read -rp "`echo $' 1. 5.4 LTS\n 2. 5.7\n 3. 5.8\n 4. 5.9\n > 5. 5.10\n 6. 5.11 RC\nchoice[1-6?]'`" _VERSEL;
|
||||
case $_VERSEL in
|
||||
"1")
|
||||
echo "_basever=54" > "$_path"/versel
|
||||
@@ -49,6 +50,11 @@ _tkg_initscript() {
|
||||
echo "_basekernel=5.9" >> "$_path"/versel
|
||||
echo "_sub=${ver59}" >> "$_path"/versel
|
||||
;;
|
||||
"6")
|
||||
echo "_basever=511" > "$_path"/versel
|
||||
echo "_basekernel=5.11" >> "$_path"/versel
|
||||
echo "_sub=${ver511}" >> "$_path"/versel
|
||||
;;
|
||||
*)
|
||||
echo "_basever=510" > "$_path"/versel
|
||||
echo "_basekernel=5.10" >> "$_path"/versel
|
||||
@@ -82,6 +88,11 @@ _tkg_initscript() {
|
||||
echo "_basekernel=5.10" >> "$_path"/versel
|
||||
echo "_sub=${ver510}" >> "$_path"/versel
|
||||
;;
|
||||
"5.11")
|
||||
echo "_basever=511" > "$_path"/versel
|
||||
echo "_basekernel=5.11" >> "$_path"/versel
|
||||
echo "_sub=${ver511}" >> "$_path"/versel
|
||||
;;
|
||||
*)
|
||||
error "There is something wrong with your kernel version selection, exiting..."
|
||||
exit 1
|
||||
@@ -132,7 +143,7 @@ _tkg_initscript() {
|
||||
elif [ "$_basever" = "59" ] || [ "$_basever" = "510" ]; then
|
||||
prompt="`echo $' > 1.Undead PDS (TkG)\n 2.Project C / PDS\n 3.Project C / BMQ\n 4.MuQSS\n 5.CFS\nchoice[1-5?]: '`"
|
||||
else
|
||||
prompt="`echo $' > 1.Project C / PDS\n 2.Project C / BMQ\n 3.MuQSS\n 4.CFS\nchoice[1-4?]: '`"
|
||||
prompt="`echo $' > 1.CFS\nchoice[1-1?]: '`"
|
||||
fi
|
||||
read -rp "$prompt" CONDITION;
|
||||
if [ "$CONDITION" = "2" ];then
|
||||
@@ -160,6 +171,8 @@ _tkg_initscript() {
|
||||
else
|
||||
if [ "$_basever" = "58" ] || [ "$_basever" = "59" ] || [ "$_basever" = "510" ]; then
|
||||
echo "_cpusched=\"upds\"" > "${_path}"/cpuschedset
|
||||
elif [ "$_basever" = "511" ]; then
|
||||
echo "_cpusched=\"cfs\"" > "${_path}"/cpuschedset
|
||||
else
|
||||
echo "_cpusched=\"pds\"" > "${_path}"/cpuschedset
|
||||
fi
|
||||
|
Reference in New Issue
Block a user