Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] RC script abbrechen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 313
Location: Cleebronn, Germany

PostPosted: Mon Aug 09, 2010 9:09 pm    Post subject: [solved] RC script abbrechen Reply with quote

Hallo Leute, wieder mal ein paar Noob- Fragen, per Google und Forumssuche nach RC zu suchen bringt nix (Release Candidate...) :(
1) Es gibt eine Tastenkombination um die RC Scripts beim booten zu stoppen. Doch diese finde ich partou nicht, kennt sie einer?
2) Wie schaffe ich es den Prozess "xdm-before" vor dem Prozess "XDM" zu starten? Mit "depend() {before xdm}"?
3) Ich will ein Init Script schreiben das nur einen Text ausgibt und 5 Sekunden pausiert. Wie realisiere ich das? eine grobe Vorlage habe ich schon:
Code:
#!/sbin/runscript
# Copyright 2010 Rainyday Productions
# Distributed under the terms of the GNU General Public License v2

depend() {
    before xdm
}

start() {
    ebegin "Die GUI wird in 10 Sekunden gestartet. Abbrechen mit [Umschalt] + [i]"
    /bin/sleep 10
}

stop() {
    /bin/sleep 0
}


Nachtrag: Gentoo Linux Dokumentation -- Initskripte - Script scheint zu funktionieren :)


Last edited by Gladdle on Sun Aug 15, 2010 9:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4693
Location: Germany

PostPosted: Mon Aug 09, 2010 9:33 pm    Post subject: Reply with quote

Gladdle wrote:
1) Es gibt eine Tastenkombination um die RC Scripts beim booten zu stoppen. Doch diese finde ich partou nicht, kennt sie einer?

Wenn du OpenRC nutzt siehe in der /etc/rc.conf
Code:
# Set rc_interactive to "YES" and you'll be able to press the I key during
# boot so you can choose to start specific services. Set to "NO" to disable
# this feature.
rc_interactive="YES"

Unter baselayout-1 sollte ähnliches in der /etc/conf.d/rc
zu finden sein.

Der Interaktive Modus kann dann beim booten mit einem großen "i" (wie Igel) aktiviert und genutzt werden.
Back to top
View user's profile Send private message
Gladdle
Guru
Guru


Joined: 27 Jul 2008
Posts: 313
Location: Cleebronn, Germany

PostPosted: Sun Aug 15, 2010 9:58 pm    Post subject: Reply with quote

Manchmal habe ich Tomaten auf den Augen. Es hat wunderbar geklappt. Nun kann ich xdm abbrechen wenn ich wieder etwas an der xorg.conf verpfusche. Vielen Dank fuer Deine Hilfe!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum