[Initng-svn] r4391 - init-scripts
svn at initng.thinktux.net
svn at initng.thinktux.net
Wed Jun 7 12:50:02 CEST 2006
Author: jimmy
Date: Wed Jun 7 12:50:00 2006
New Revision: 4391
Modified:
init-scripts/getty
init-scripts/mountroot
Log:
Work on init-scripts
Modified: init-scripts/getty
==============================================================================
--- init-scripts/getty (original)
+++ init-scripts/getty Wed Jun 7 12:50:00 2006
@@ -2,18 +2,25 @@
setup()
{
- iregister -s getty virtual
-
- for SE in 1 2 3 4 5 6
- do
- iregister -s getty/$SE daemon
- iset -s getty/$SE need = initial bootmisc
- iset -s getty/$SE term_timeout = 3
- iset -s getty/$SE exec daemon = /sbin/getty 38400 tty${SE}
- iset -s getty/$SE respawn
- idone -s getty/$SE
- iset -s getty need = getty/$SE
- done
+ #if getty service
+ if [ "$SERVICE" == "getty" ]
+ then
+ iregister -s getty virtual
+
+ # Make it need 6 new gettys
+ for SE in tty1 tty2 tty3 tty4 tty5 tty6
+ do
+ iset -s getty need = getty/$SE
+ done
+ idone -s getty
+ exit 0
+ fi
+ # else its a getty termainal
+ iregister daemon
+ iset need = initial bootmisc
+ iset term_timeout = 3
+ iset exec daemon = "/sbin/getty 38400 $NAME"
+ iset respawn
idone
}
Modified: init-scripts/mountroot
==============================================================================
--- init-scripts/mountroot (original)
+++ init-scripts/mountroot Wed Jun 7 12:50:00 2006
@@ -5,7 +5,7 @@
setup()
{
- iregister service
+ iregister -s mountroot service
iregister -s mountroot/check service
iregister -s mountroot/rootrw service
@@ -21,7 +21,7 @@
iset -s mountroot/check use = "mountroot/evms mountroot/lvm mountroot/dmsetup"
iset -s mountroot/rootrw need = "initial mountroot/check"
iset -s mountroot/rootrw use = "mountroot/evms mountroot/lvm mountroot/dmsetup"
- iset need = "initial mountroot/rootrw"
+ iset -s mountroot need = "initial mountroot/rootrw"
# mountroot/check cant fail!
@@ -37,7 +37,7 @@
iexec -s mountroot/check start = check_start
iexec -s mountroot/rootrw start = rootrw_start
iexec -s mountroot/rootrw stop = rootrw_stop
- iexec start mountroot_start
+ iexec -s mountroot start = mountroot_start
# Tell initng this service is done parsing.
idone -s mountroot/dmsetup
@@ -45,7 +45,7 @@
idone -s mountroot/evms
idone -s mountroot/check
idone -s mountroot/rootrw
- idone
+ idone -s mountroot
}
lvm_start()
More information about the Initng-svn
mailing list