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
0af4f596
Kaydet (Commit)
0af4f596
authored
Şub 26, 2008
tarafından
Bahadır Kandemir
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bring up interfaces on startup.
üst
a2467748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
mudur.py
mudur/bin/mudur.py
+20
-5
No files found.
mudur/bin/mudur.py
Dosyayı görüntüle @
0af4f596
...
...
@@ -475,8 +475,6 @@ def getServices(bus, all=False):
def
startServices
(
extras
=
None
):
os
.
setuid
(
0
)
if
extras
is
None
:
ui
.
info
(
_
(
"Starting services"
))
import
dbus
try
:
bus
=
dbus
.
SystemBus
()
...
...
@@ -492,10 +490,27 @@ def startServices(extras=None):
except
dbus
.
DBusException
:
pass
return
# Give login screen a headstart
if
config
.
get
(
"head_start"
):
startService
(
config
.
get
(
"head_start"
))
# Start network service
import
pardus.iniutils
for
script
in
os
.
listdir
(
"/etc/network"
):
db
=
pardus
.
iniutils
.
iniDB
(
os
.
path
.
join
(
"/etc/network"
,
script
))
for
profile
in
db
.
listDB
():
if
db
.
getDB
(
profile
)[
"state"
]
==
"up"
:
device
=
db
.
getDB
(
profile
)
.
get
(
"device"
,
None
)
if
not
device
:
continue
device
=
device
.
rsplit
(
"_"
)[
-
1
]
try
:
ui
.
info
(
_
(
"Bringing up interface
%
s (Profile:
%
s)"
)
%
(
device
,
profile
,))
obj
=
bus
.
get_object
(
"tr.org.pardus.comar"
,
"/package/
%
s"
%
script
,
introspect
=
False
)
obj
.
setState
(
profile
,
"up"
,
dbus_interface
=
"tr.org.pardus.comar.Net.Link"
)
except
dbus
.
DBusException
:
ui
.
error
(
_
(
"Unable to bring up interface
%
s"
)
%
device
)
if
not
config
.
get
(
"safe"
):
ui
.
info
(
_
(
"Starting services"
))
# Give login screen a headstart
if
config
.
get
(
"head_start"
):
startService
(
config
.
get
(
"head_start"
))
services
=
getServices
(
bus
)
for
service
in
services
:
readyService
(
service
)
...
...
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