[Initng] initng-scripts and wildcards
Iens Persson
xerxes2 at gmail.com
Sat Mar 24 01:38:40 CET 2007
Hello folks!
There's some confusion about how to use wildcards in the upcoming new
shellbased version if initscripts to initng. Perhaps Jimmy have already
thought out something so better to ask before implementing something else.
Some draft here:
# NAME:
# DESCRIPTION:
# WWW:
setup()
{
iregister -s "system/agetty" virtual
iregister -s "system/agetty/1" daemon
iregister -s "system/agetty/*" daemon
iset -s "system/agetty/1" need = "system/bootmisc"
iset -s "system/agetty/1" provide = "virtual/getty/1"
iset -s "system/agetty/1" term_timeout = 3
iset -s "system/agetty/1" respawn
iset -s "system/agetty/1" last
iset -s "system/agetty/*" need = "system/bootmisc"
iset -s "system/agetty/*" provide = "virtual/getty/${NAME}"
iset -s "system/agetty/*" term_timeout = 3
iset -s "system/agetty/*" respawn
iset -s "system/agetty" need = "system/agetty/2 system/agetty/3 system/agetty/4 system/agetty/5 system/agetty/6"
iset -s "system/agetty" use = "system/mountfs/essential service/issue"
iexec -s "system/agetty/1" daemon = "agetty_any_daemon 1"
iexec -s "system/agetty/*" daemon = "agetty_any_daemon ${NAME}"
idone -s "system/agetty/1"
idone -s "system/agetty/*"
idone -s "system/agetty"
}
agetty_any_daemon()
{
NAME=${1}
exec @/sbin/agetty@ "38400" "tty${NAME}" "vt100"
}
Greets
More information about the Initng
mailing list