开机 welcome to Magic Linux..在哪里
开机过程中的 welcome to Magic Linux Genius还是彩色显示,
这个文件在哪里,怎么弄的
颜色是怎么定义的? 在 rc.sysinit 中。 哈哈,谢谢Kanker
我说我搜索的整个etc目录居然什么也没有搜到
怎么也没有想到这串字符不是挨着的
# Print a text banner.
echo
echo -en $"\t\tWelcome to "
if LC_ALL=C fgrep -q "Magic Linux" /etc/magic-release ; then
[ "$BOOTUP" = "color" -o "$BOOTUP" = "graphical" ] && echo -en "\\033[0;31m"
echo -en "Magic Linux"
[ "$BOOTUP" = "color" -o "$BOOTUP" = "graphical" ] && echo -en "\\033[0;39m"
PRODUCT=`sed "s/^Magic\ Linux//g" /etc/magic-release`
echo " $PRODUCT"
else
PRODUCT=`sed "s/ release.*//g" /etc/magic-release`
echo "$PRODUCT"
fi
if [ "$PROMPT" != "no" ]; then
echo -en $"\t\tPress 'I' to enter interactive startup."
echo
fi
Kanker,能不能简单解释一下 echo -en "\\033[0;31m" 东西? 这个就是颜色的定义。可以看一下帮助。
# Print a text banner.
echo
echo -en $"\t\tWelcome to "
if LC_ALL=C fgrep -q "Magic Linux" /etc/magic-release ; then
[ "$BOOTUP" = "color" -o "$BOOTUP" = "graphical" ] && echo -en "\\033[0;31m"
echo -en "Magic Linux"
[ "$BOOTUP" = "color" -o "$BOOTUP" = "graphical" ] && echo -en "\\033[0;39m"
PRODUCT=`sed "s/^Magic\ Linux//g" /etc/magic-release`
echo " $PRODUCT"
else
PRODUCT=`sed "s/ release.*//g" /etc/magic-release`
echo "$PRODUCT"
fi
if [ "$PROMPT" != "no" ]; then
echo -en $"\t\tPress 'I' to enter interactive startup."
echo
fi
Kanker,能不能简单解释一下 echo -en "\\033
http://www.cublog.cn/opera/showart.php?blogid=10604&id=60090
看看这个,应该用得着
页:
[1]