|
1.[root@MagicLinux huting]# fbmngplay -h
usage: fbmngplay [ -x <val> ] [ -y <val> ] [ -a <val> ] [-b] [-v] [-s] [file.mng [file.mng [...]]]
-x: x coordinate
-y: y coordinate
-a, --alpha: default alpha channel 1..100
-v, --verbose: verbose mode
-b, --buffered: buffered mode
-s, --signal: wait for SIGUSR1 between animations
-p, --position: dynamically select position
-V, --version: show version and exit
-?, -h, --help: print this help.
-S --start-console: only output animation on console it was started on.
-c: start output animation on specified console.
这个我见到了,可是用这个做什么的我不懂还请大哥大姐们指教!
2.也来写一个脚本:
animate.sh放在/sbin中
源码:
case "$1" in
start)
fbmngplay -x 420 -y 580 /etc/bootsplash/themes/current/animations/bounce.mng &
exit 0
;;
stop)
killall -q fbmngplay
exit 0
;;
esac
将其的属性改为可执行。
chmod +x animate.sh 我用了CHOMOD
+X命令后说找不到后面的那个文件这是怎么回事?
3.要关掉fbmngplay也行简单。我是找到/etc/rc.d/init.d有找到最后一个运行的脚来,在start)那一段最后加一句
/sbin/animate.sh stop
比如我最后运行的是vmware。所以,修改vmware
case "$1" in <-找到这一段
start)
if [ -e "$vmware_etc_dir"/not_configured ]; then
echo "`vmware_product_name`"' is installed, but it has not been (correctly) configured'
echo 'for the running kernel. To (re-)configure it, invoke the'
echo
...
[ -d /var/lock/subsys ] || mkdir -p /var/lock/subsys
touch /var/lock/subsys/"$subsys"
/sbin/animate.sh stop <-加入这一行
;;
我这边而且还没有这个文件了更奇怪了!!!!!!!!!!!!!
有没有教程啊 ?小弟很想看看到底怎么改的???????大哥大姐们帮我解答一下好吗 我的QQ191178695 |
|