File: config

package info (click to toggle)
arcboot 0.3.8.6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,268 kB
  • ctags: 2,395
  • sloc: ansic: 14,890; makefile: 776; awk: 311; sh: 167; sed: 12
file content (17 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e
#$Id: config,v 1.1 2004/11/29 10:39:38 ladis Exp $

# Source debconf library.
. /usr/share/debconf/confmodule

# Already seen?
db_fget arcboot/boot_device seen
if [ "$RET" = "false" ]; then
    # what about devfs?
    ROOTDEVICE=`mount | grep '[[:space:]]/[[:space:]]' | cut -d' ' -f 1`
    BOOTDEVICE=`echo $ROOTDEVICE | sed 's/[12345678]*$//'`
    db_set arcboot/boot_device $BOOTDEVICE
fi

db_input medium arcboot/boot_device || true
db_go