Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wie ein Script so früh wie möglich ausführen? (Systemstart)
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
3PO
Veteran
Veteran


Joined: 26 Nov 2006
Posts: 1110
Location: Schwabenländle

PostPosted: Thu Dec 31, 2009 11:43 am    Post subject: Wie ein Script so früh wie möglich ausführen? (Systemstart) Reply with quote

Hallo Zusammen,

wie kann ich denn ein Script oder einen Befehl so bfür wie möglich bei einem Systemstart ausführen?

Der Hintergrund ist folgender:

Ich habe ein LCD-Display und möchte während des Systemstarts "System wird gestartet" anzeigen lassen.
Ein Eintrag in "local.start" ist hierfür natürlich nicht geeignet da der ja erst ganz am Schluss ausgeführt wird.

Deshalb nun die Frage, kann man das irgendwie realisieren und falls ja, wie?
Back to top
View user's profile Send private message
UTgamer
Veteran
Veteran


Joined: 10 Aug 2003
Posts: 1326
Location: Troisdorf (Köln) Deutschland

PostPosted: Thu Dec 31, 2009 12:12 pm    Post subject: Reply with quote

Du kannst dir ein init Script erstellen und es mit rc-update entweder in den boot-process oder im default Level ausführen lassen.

Schau dir die verschienen /etc/init.d Scripte einmal an und bau dir ein eigenes. Irgendwo hats auch ein Wiki für Init-Scripte.

Ich habe mir zur Netzwerksicherheit gegen ARP-Spoofing auch mal ein Script selbst gebaut gehabt.
arp-setzen Beispiel:
Code:
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Abgeschaut aus bootmisc

depend() {
   need localmount
   need net
}

start() {

   #
   # Statische ARP-Adressen setzen
   #
      #
      arp -s "192.168......." "MAC...................."
      arp -s "192.168......." "MAC...................."
      arp -s "192.168......." "MAC...................."
      arp -s "192.168......." "MAC...................."
}

_________________
AMD Phenom II x4 >> CFLAGS="-march=amdfam10 -O2 -mmmx -msse3 -mfpmath=sse,387 -pipe -ffast-math" is stable and here in use.

Did Intel produce at any time bugfree HW?
http://www.urbanmyth.org/microcode/
http://www.heise.de/newsticker/meldung/91748
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