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
5df2a043
Commit
5df2a043
authored
May 18, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm update-kernel --used-kflavour: fix and use
parent
0dcb8035
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
19 deletions
+4
-19
epm-kernel_update
bin/epm-kernel_update
+1
-1
switch-to-nouveau.sh
prescription.d/switch-to-nouveau.sh
+2
-8
waydroid.sh
prescription.d/waydroid.sh
+1
-10
No files found.
bin/epm-kernel_update
View file @
5df2a043
...
@@ -64,7 +64,7 @@ case $1 in
...
@@ -64,7 +64,7 @@ case $1 in
'--used-kflavour'
)
'--used-kflavour'
)
used_kflavour
used_kflavour
info
'You used $USED_KFLAVOUR kernel kflavour'
[
-n
"
$verbose
"
]
&&
info
'You used $USED_KFLAVOUR kernel kflavour'
||
echo
"
$USED_KFLAVOUR
"
return
;;
return
;;
'--check-run-kernel'
)
'--check-run-kernel'
)
...
...
prescription.d/switch-to-nouveau.sh
View file @
5df2a043
...
@@ -11,13 +11,6 @@ exit
...
@@ -11,13 +11,6 @@ exit
[
"
$(
epm print info
-s
)
"
=
"alt"
]
||
fatal
"Only ALTLinux is supported"
[
"
$(
epm print info
-s
)
"
=
"alt"
]
||
fatal
"Only ALTLinux is supported"
# https://www.altlinux.org/Nvidia#Смена_открытых_драйверов_на_проприетарные[1]
# https://www.altlinux.org/Nvidia#Смена_открытых_драйверов_на_проприетарные[1]
used_kflavour
()
{
if
[
$(
uname
-r
|
grep
"def"
)
]
;
then
USED_KFLAVOUR
=
$(
uname
-r
|
awk
-F
'-'
'{print $2 "-" $3}'
)
else
USED_KFLAVOUR
=
$(
uname
-r
|
awk
-F
'-'
'{print $2}'
)
fi
}
epm update
||
fatal
epm update
||
fatal
epm update-kernel
||
fatal
epm update-kernel
||
fatal
...
@@ -26,7 +19,8 @@ if ! epm update-kernel --check-run-kernel ; then
...
@@ -26,7 +19,8 @@ if ! epm update-kernel --check-run-kernel ; then
fatal
fatal
fi
fi
used_kflavour
USED_KFLAVOUR
=
"
$(
epm update-kernel
--used-kflavour
)
"
# TODO: fix to use just epmi kernel-modules-drm-nouveau
epm
install
--skip-installed
kernel-modules-drm-nouveau-
$USED_KFLAVOUR
xorg-drv-nouveau i586-xorg-drv-nouveau
||
fatal
epm
install
--skip-installed
kernel-modules-drm-nouveau-
$USED_KFLAVOUR
xorg-drv-nouveau i586-xorg-drv-nouveau
||
fatal
echo
"Set nouveau in /etc/X11/xorg.conf.d/10-monitor.conf"
echo
"Set nouveau in /etc/X11/xorg.conf.d/10-monitor.conf"
...
...
prescription.d/waydroid.sh
View file @
5df2a043
...
@@ -32,15 +32,6 @@ Use: epm prescription waydroid [option]
...
@@ -32,15 +32,6 @@ Use: epm prescription waydroid [option]
exit
exit
}
}
# TODO: fix used_kflavour export in epm update-kernel --check-run-kernel
used_kflavour
()
{
if
[
$(
uname
-r
|
grep
"def"
)
]
;
then
USED_KFLAVOUR
=
$(
uname
-r
|
awk
-F
'-'
'{print $2 "-" $3}'
)
else
USED_KFLAVOUR
=
$(
uname
-r
|
awk
-F
'-'
'{print $2}'
)
fi
}
waydroid_install
()
{
waydroid_install
()
{
epm update-kernel
--add-kernel-options
psi1
epm update-kernel
--add-kernel-options
psi1
...
@@ -51,7 +42,7 @@ waydroid_install () {
...
@@ -51,7 +42,7 @@ waydroid_install () {
fatal
fatal
fi
fi
used_kflavour
USED_KFLAVOUR
=
"
$(
epm update-kernel
--used-kflavour
)
"
epm
install
--skip-installed
kernel-modules-anbox-
$USED_KFLAVOUR
libgbinder1 waydroid
||
fatal
epm
install
--skip-installed
kernel-modules-anbox-
$USED_KFLAVOUR
libgbinder1 waydroid
||
fatal
a
=
update-grub
a
=
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