zoukankan      html  css  js  c++  java
  • ubuntu 10.10显示grub菜单

    安装ubuntu10.10后,如果机器上只有一个系统,默认grub菜单是不会显示的,如果想要显示,按如下步骤操作:

    1.把/etc/default/grub文件中的GRUB_HIDDEN_TIMEOUT=0的0改为大于0的数字,比如5;

    2.把/etc/grub.d/30_os-prober文件中的所有set timeout=0的0改为10,如下:

    adjust_timeout () {

      if [ "x${found_other_os}" = "x" ] ; then

        if [ "x${GRUB_HIDDEN_TIMEOUT}" != "x" ] ; then

    if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then

    verbose=

          else

    verbose=" --verbose"

          fi

          if [ "x${GRUB_HIDDEN_TIMEOUT}" = "x0" ] ; then

    cat <<EOF

    if [ /${timeout} != -1 ]; then

      if keystatus; then

        if keystatus --shift; then

          set timeout=-1

        else

          set timeout=10

        fi

      else

        if sleep$verbose --interruptible 3 ; then

          set timeout=10

        fi

      fi

    fi

    EOF

          else

    cat << EOF

    if [ /${timeout} != -1 ]; then

      if sleep$verbose --interruptible ${GRUB_HIDDEN_TIMEOUT} ; then

        set timeout=10

      fi

    fi

    EOF

          fi

        fi

      fi

    }

    来自:http://blog.chinaunix.net/u2/61800/showart_2371499.html

  • 相关阅读:
    第一篇代码 嗨翻C语言 21点扑克
    Windows7 sp1 64位下安装配置eclipse+jdk+CDT+minGW
    MinGW-64 安装
    Windows Live Writer配置步骤
    Css 居中
    c++ 常量成员函数
    c/c++ 引用计数
    C++ 《STL源码剖析》学习-vector
    C/C++ 有符号数和无符号数
    cocos2d 内存管理机制
  • 原文地址:https://www.cnblogs.com/libao/p/2808497.html
Copyright © 2011-2022 走看看