Changeset 670

Show
Ignore:
Timestamp:
07/05/08 13:53:14 (2 months ago)
Author:
free
Message:
  • system

. change grub timeout in /boot/grub/menu.list

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cdd-utils/trunk/debian/changelog

    r661 r670  
    1 cdd-utils (0.12.5) 64studio; urgency=low 
     1cdd-utils (0.12.6) UNRELEASED; urgency=low 
    22 
    33  * [lib]: 
     
    1010     - server 
    1111        . add cups script for sharing printers with samba 
     12     - system 
     13        . change grub timeout in /boot/grub/menu.list 
    1214  * [bin] 
    1315     - qjackctl-wrapper: hide qjack's main window at startup 
  • cdd-utils/trunk/lib/system.sh

    r583 r670  
    106106grub () { 
    107107    if [ "$1" != "" ]; then 
    108         timeout=$1 
    109     else 
    110         timeout=5 
     108        timeout="$1" 
     109    else 
     110        timeout="5" 
    111111    fi 
    112112    if [ "$2" != "" ]; then 
    113         title=$2 
     113        title="$2" 
    114114    else 
    115115        title="Custom system" 
     
    117117 
    118118    # Grub timeout and directory 
     119    mkdir -p /boot/grub 
     120 
    119121    cfg=/usr/sbin/update-grub 
    120122    if ! exists $cfg; then warning "$cfg not found"; return; fi 
    121123    sed -i -e "s|^timeout.*|timeout     $timeout|g"  $cfg 
    122     mkdir -p /boot/grub 
     124 
     125    cfg=/boot/grub/menu.lst 
     126    if ! exists $cfg; then warning "$cfg not found"; return; fi 
     127    sed -i -e "s|^timeout.*|timeout     $timeout|g"  $cfg 
    123128 
    124129    # Set custom title