Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
40bc9108
Commit
40bc9108
authored
Feb 08, 2024
by
Mikhail Tergoev
Committed by
Vitaly Lipatov
Feb 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed check kernel version and added make-initrd
parent
afd893f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
switch-to-nvidia.sh
prescription.d/switch-to-nvidia.sh
+4
-1
No files found.
prescription.d/switch-to-nvidia.sh
View file @
40bc9108
...
...
@@ -35,7 +35,7 @@ epm update-kernel || fatal
# проверяем, совпадает ли ядро (пока нет такой проверки в update-kernel)
# TODO: добавить функцию в update-kernel и здесь использовать её
check_run_kernel
()
{
if
[
-n
"
$(
ls
/boot |
grep
"vmlinuz"
|
grep
-vE
'vmlinuz-un-def|vmlinuz-std-def'
|
sort
-r
|
head
-n1
|
grep
$(
uname
-r
))
"
]
;
then
if
[
-n
"
$(
ls
/boot |
grep
"vmlinuz"
|
grep
-vE
'vmlinuz-un-def|vmlinuz-std-def'
|
sort
-
V
r
|
head
-n1
|
grep
$(
uname
-r
))
"
]
;
then
echo
"Запущено самое свежее установленное ядро."
return
0
else
...
...
@@ -82,6 +82,9 @@ sed -i "s|^\(GRUB_CMDLINE_LINUX_DEFAULT='.*\)'\$|\1 nvidia-drm.modeset=1'|" /etc
# Убирает «Неизвестный монитор» в настройках дисплеев в сессии Wayland
sed
-i
"s|^
\(
GRUB_CMDLINE_LINUX_DEFAULT='.*
\)
'
\$
|
\1
initcall_blacklist=simpledrm_platform_driver_init'|"
/etc/sysconfig/grub2
# Запускаем регенерацию initrd
make-initrd
# Обновляем grub
update-grub
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment