Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
live-installer
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
live-installer
Commits
c96c6d23
Kaydet (Commit)
c96c6d23
authored
Ock 30, 2020
tarafından
Clement Lefebvre
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
NVIDIA driver: Add systemd support
üst
c72c1f90
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
postinst
debian/postinst
+1
-0
install-live-drivers.service
lib/systemd/system/install-live-drivers.service
+17
-0
install-live-drivers
usr/bin/install-live-drivers
+15
-0
No files found.
debian/postinst
Dosyayı görüntüle @
c96c6d23
...
...
@@ -8,6 +8,7 @@ case "$1" in
then
systemctl daemon-reload
||
true
systemctl
enable
live-installer.service
||
true
systemctl
enable
install-live-drivers.service
||
true
fi
;;
abort-upgrade|abort-remove|abort-deconfigure
)
...
...
lib/systemd/system/install-live-drivers.service
0 → 100644
Dosyayı görüntüle @
c96c6d23
[Unit]
Description=Installing Live Drivers
Before=lightdm.service
Wants=network-online.target
After=network.target network-online.target
[Service]
Type=oneshot
Restart=no
Before=lightdm.service
ExecStart=/usr/bin/install-live-drivers
StandardOutput=tty
TTYPath=/dev/tty1
[Install]
WantedBy=multi-user.target
usr/bin/install-live-drivers
0 → 100755
Dosyayı görüntüle @
c96c6d23
#!/usr/bin/python2
import
os
import
commands
#NVIDIA
driver
=
"/usr/share/live-installer/nvidia-driver.tar.gz"
if
"install-nvidia="
in
commands
.
getoutput
(
"cat /proc/cmdline"
)
and
os
.
path
.
exists
(
driver
):
print
(
"Installing NVIDIA driver..."
)
try
:
os
.
system
(
"tar zxvf
%
s"
%
driver
)
os
.
system
(
"DEBIAN_FRONTEND=noninteractive dpkg -i --force-depends nvidia-driver/*.deb"
)
os
.
system
(
"rm -rf nvidia-driver"
)
except
Exception
as
e
:
print
(
"Failed to install NVIDIA driver: "
,
e
)
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