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
56bcb70a
Commit
56bcb70a
authored
Apr 05, 2024
by
Владислав Бабенко
Committed by
Vitaly Lipatov
Apr 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix translate in switch-to-nvidia.sh
parent
239828d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
switch-to-nvidia.sh
prescription.d/switch-to-nvidia.sh
+4
-4
No files found.
prescription.d/switch-to-nvidia.sh
View file @
56bcb70a
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# https://www.altlinux.org/Nvidia#Смена_открытых_драйверов_на_проприетарные[1]
# https://www.altlinux.org/Nvidia#Смена_открытых_драйверов_на_проприетарные[1]
# https://www.altlinux.org/Переход_на_драйверы_Nvidia_и_fglrx#Установка_проприетарных_драйверов_nvidia_и_fglrx_:
# https://www.altlinux.org/Переход_на_драйверы_Nvidia_и_fglrx#Установка_проприетарных_драйверов_nvidia_и_fglrx_:
[
"
$1
"
!=
"--run"
]
&&
echo
"Switch to using
nV
idia proprietary driver"
&&
exit
[
"
$1
"
!=
"--run"
]
&&
echo
"Switch to using
Nv
idia proprietary driver"
&&
exit
.
$(
dirname
$0
)
/common.sh
.
$(
dirname
$0
)
/common.sh
...
@@ -22,7 +22,7 @@ epm assure lspci pciutils || exit
...
@@ -22,7 +22,7 @@ epm assure lspci pciutils || exit
# проверяем работоспособность драйвера на текущий момент
# проверяем работоспособность драйвера на текущий момент
# TODO: добавить аргумент --force для принудительной переустановки
# TODO: добавить аргумент --force для принудительной переустановки
if
[
-z
"
$force
"
]
&&
a
=
lspci
-k
|
grep
-A
2
-i
"VGA"
|
grep
"Kernel driver in use"
|
grep
-q
"nvidia"
;
then
if
[
-z
"
$force
"
]
&&
a
=
lspci
-k
|
grep
-A
2
-i
"VGA"
|
grep
"Kernel driver in use"
|
grep
-q
"nvidia"
;
then
echo
"N
VIDIA
driver is already installed and used."
echo
"N
vidia
driver is already installed and used."
exit
exit
fi
fi
...
@@ -40,9 +40,9 @@ check_run_kernel () {
...
@@ -40,9 +40,9 @@ check_run_kernel () {
}
}
if
check_run_kernel
;
then
if
check_run_kernel
;
then
echo
"The most
recently
installed
${
USED_KFLAVOUR
}
kernel is running."
echo
"The most
newer
installed
${
USED_KFLAVOUR
}
kernel is running."
else
else
echo
"The system has a
${
USED_KFLAVOUR
}
kernel that is more recent than the one that was launched
."
echo
"The system has a
newer
${
USED_KFLAVOUR
}
kernel
."
echo
"Reboot with a fresh
${
USED_KFLAVOUR
}
kernel and restart: epm play switch-to-nvidia"
echo
"Reboot with a fresh
${
USED_KFLAVOUR
}
kernel and restart: epm play switch-to-nvidia"
fatal
fatal
fi
fi
...
...
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