请问个问题 关于bootsplash的 shell 帮忙砍下
发表于 : 2007-03-20 14:53
呵呵帮忙注解下 shell 的含意吧 有的懂有的不懂
就像看看原理 !!!!!!!!!!!!!帮忙懂的啊
有点偷懒见谅~~~~
trigger events during bootup
we suggest that you add a function to your init scripts that is called every time an init script is started. This can either be done in the runlevel scripts themselves or by the script/program scheduling it (i.e. /etc/init.d/rc)
function rc_splash() //这个函数作用域是??
{
test "$SPLASH" != "no" && test "$_rc_splash" -eq 1 && /sbin/splash "$1"
progress=$(( $progress + 1 ))
}
when adding the rc_splash call to your runlevel script scheduler, do it
about like this: //这个runleve script 需要替换原来的什么dd吗?
for i in $runrc/S${rex}*; do //这个$runrc/S${rex}* 怎么解释?运行$runrc 目录下所有S开头的dd?
[..] // 这个[..]是什么意思?
# send information to bootsplash handler.
rc_splash "$i start"
[..]
done
the splash program will look for the file // 这个splash will 是只什么时候?
/etc/bootsplash/themes/current/config/animations.cfg which looks like the following:
[ .. ]
fsck start:bootanim start fsck.mng //8懂~什么语法?
fsck stop:bootanim stop
[ .. ]
so when %i is "fsck" and the runlevel script is executed during system start, the bootanim start fsck.mng //fsck.mng 是什么dd 程序?script?
Basically, it's a list of bootup hooks that are associated with a command to be executed when a certain service is started/stopped during boot/shutdown. //这句话怎么解释?hooks 是什么意思?
The syntax is this:
[service] [start|stop]:[command-to-execute]
"Service" is almost always the name of an executed init script. There are some additional hooks for finetuning. See the SuSE 8.1 theme's config file "animations.cfg"
就像看看原理 !!!!!!!!!!!!!帮忙懂的啊
有点偷懒见谅~~~~
trigger events during bootup
we suggest that you add a function to your init scripts that is called every time an init script is started. This can either be done in the runlevel scripts themselves or by the script/program scheduling it (i.e. /etc/init.d/rc)
function rc_splash() //这个函数作用域是??
{
test "$SPLASH" != "no" && test "$_rc_splash" -eq 1 && /sbin/splash "$1"
progress=$(( $progress + 1 ))
}
when adding the rc_splash call to your runlevel script scheduler, do it
about like this: //这个runleve script 需要替换原来的什么dd吗?
for i in $runrc/S${rex}*; do //这个$runrc/S${rex}* 怎么解释?运行$runrc 目录下所有S开头的dd?
[..] // 这个[..]是什么意思?
# send information to bootsplash handler.
rc_splash "$i start"
[..]
done
the splash program will look for the file // 这个splash will 是只什么时候?
/etc/bootsplash/themes/current/config/animations.cfg which looks like the following:
[ .. ]
fsck start:bootanim start fsck.mng //8懂~什么语法?
fsck stop:bootanim stop
[ .. ]
so when %i is "fsck" and the runlevel script is executed during system start, the bootanim start fsck.mng //fsck.mng 是什么dd 程序?script?
Basically, it's a list of bootup hooks that are associated with a command to be executed when a certain service is started/stopped during boot/shutdown. //这句话怎么解释?hooks 是什么意思?
The syntax is this:
[service] [start|stop]:[command-to-execute]
"Service" is almost always the name of an executed init script. There are some additional hooks for finetuning. See the SuSE 8.1 theme's config file "animations.cfg"