Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
S
scom
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
scom
Commits
1ae1c00a
Kaydet (Commit)
1ae1c00a
authored
Ock 07, 2008
tarafından
S.Çağlar Onur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
mudur muavin'i çağırma/install etme ayrıca setSplash sana güle güle
üst
79ddaab4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
32 deletions
+11
-32
mudur.py
mudur/bin/mudur.py
+11
-31
setup.py
mudur/setup.py
+0
-1
No files found.
mudur/bin/mudur.py
Dosyayı görüntüle @
1ae1c00a
...
...
@@ -383,20 +383,6 @@ def setSystemLanguage():
if
content
!=
loadFile
(
"/etc/env.d/03locale"
):
write
(
"/etc/env.d/03locale"
,
content
)
def
setSplash
():
"""Setup console splash and proper encodings for consoles"""
splash
=
config
.
get_kernel_opt
(
"splash"
)
if
not
splash
or
not
os
.
path
.
exists
(
"/dev/fb0"
):
return
theme
=
"default"
for
arg
in
splash
.
split
(
","
):
if
arg
.
startswith
(
"theme:"
):
theme
=
arg
[
6
:]
for
i
in
range
(
1
,
int
(
config
.
get
(
"tty_number"
))
+
1
):
run
(
"/usr/bin/splash_manager"
,
"--mode=v"
,
"--theme=
%
s"
%
theme
,
"--cmd=set"
,
"--tty=
%
s"
%
i
)
def
setTranslation
():
"""Load translation"""
global
__trans
...
...
@@ -526,15 +512,14 @@ def setupUdev():
run
(
"/sbin/udevd"
,
"--daemon"
)
ui
.
info
(
_
(
"Populating /dev"
))
# create needed queue directory
os
.
mkdir
(
"/dev/.udev/queue/"
)
# trigger events for all devices
run
(
"/sbin/udevtrigger"
)
# FIXME: with new udev
# run("/sbin/udevadm trigger)
run
(
"/sbin/udevadm"
,
"trigger"
)
# wait for events to finish
run
(
"/sbin/udevsettle"
,
"--timeout=180"
)
# FIXME: with new udev
# run"/sbin/udevadm settle --timeout=180")
run
(
"/sbin/udevadm"
,
"settle"
,
"--timeout=180"
)
else
:
# no netlink support in old kernels
write
(
"/proc/sys/kernel/hotplug"
,
"/sbin/udevsend"
)
...
...
@@ -542,10 +527,6 @@ def setupUdev():
# NOTE: handle lvm here when used by pardus
if
config
.
get
(
"debug"
):
# Set muavin into teh debug mode too
touch
(
"/dev/muavin.debug"
)
def
checkRoot
():
if
not
config
.
get
(
"livecd"
):
ui
.
info
(
_
(
"Remounting root filesystem read-only"
))
...
...
@@ -973,10 +954,6 @@ if sys.argv[1] == "sysinit":
setHostname
()
modules
()
ui
.
info
(
_
(
"Starting Coldplug"
))
# First activate the module hotplugging
touch
(
"/dev/.muavin"
)
subprocess
.
Popen
([
"/sbin/muavin.py"
,
"--coldplug"
])
checkFS
()
localMount
()
...
...
@@ -1021,11 +998,14 @@ elif sys.argv[1] == "boot":
remoteMount
(
old_handler
)
setSplash
()
elif
sys
.
argv
[
1
]
==
"default"
:
if
not
config
.
get
(
"safe"
)
and
os
.
path
.
exists
(
"/etc/conf.d/local.start"
):
run
(
"/bin/bash"
,
"/etc/conf.d/local.start"
)
ui
.
info
(
_
(
"Triggering udev events which are failed during a previous run"
))
# Trigger only the events which are failed during a previous run.
run
(
"/sbin/udevadm"
,
"trigger"
,
"--retry-failed"
)
startServices
()
elif
sys
.
argv
[
1
]
==
"single"
:
...
...
mudur/setup.py
Dosyayı görüntüle @
1ae1c00a
...
...
@@ -77,7 +77,6 @@ def install(args):
parser
.
suite
(
code
)
.
compile
()
install_file
(
"bin/mudur.py"
,
prefix
,
"sbin/mudur.py"
)
install_file
(
"bin/muavin.py"
,
prefix
,
"sbin/muavin.py"
)
install_file
(
"bin/update-environment.py"
,
prefix
,
"sbin/update-environment"
)
install_file
(
"bin/update-fstab.py"
,
prefix
,
"sbin/update-fstab"
)
install_file
(
"bin/compat.py"
,
prefix
,
"etc/init.d/compat.py"
)
...
...
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