~ubuntu-branches/ubuntu/gutsy/debianutils/gutsy

« back to all changes in this revision

Viewing changes to mkboot

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2007-06-03 13:32:43 UTC
  • Revision ID: james.westby@ubuntu.com-20070603133243-zn56ygvg0bdb8yqn
Tags: 2.20.1
tempfile.1: water down the assertion about how tempnam(3) works,
and refer repeatedly to the tempnam(3) manual page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    if ! which update-grub >/dev/null && ! which grub-install >/dev/null; then return 1; fi
53
53
}
54
54
 
 
55
# check whether Yaboot is installed
 
56
yabootcheck () {
 
57
    [ -f /etc/yaboot.conf ] && [ -x /usr/sbin/ybin ] && return 0 || return 1
 
58
}
 
59
 
 
60
# check whether Arcboot is installed
 
61
arcbootcheck () {
 
62
    [ -f /etc/arcboot.conf ] && [ -x /usr/sbin/arcboot ] && return 0 || return 1
 
63
}
 
64
 
55
65
# check whether LILO is installed
56
66
lilocheck () {
57
67
    printf "\nChecking for LILO..."
360
370
        printf "\nGRUB is installed. To automatically switch to new kernels, point your\n"
361
371
        echo "default entry in menu.lst to $1"
362
372
        exit 0
 
373
    elif yabootcheck; then
 
374
        printf "\nYaboot is installed. To automatically switch to new kernels, point your\n"
 
375
        echo "default entry in /etc/yaboot.conf to $1"
 
376
        exit 0
 
377
    elif arcbootcheck; then
 
378
        printf "\nArcboot is installed. To automatically switch to new kernels, point your\n"
 
379
        echo "default entry in /etc/arcboot.conf to $1"
 
380
        exit 0
363
381
    fi
364
382
 
365
383
    if lilocheck; then