File: config

package info (click to toggle)
raidtools2 0.90.20010914-15
  • links: PTS
  • area: main
  • in suites: woody
  • size: 692 kB
  • ctags: 467
  • sloc: ansic: 2,861; sh: 187; makefile: 144
file content (53 lines) | stat: -rw-r--r-- 815 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#! /bin/sh

set -e

. /usr/share/debconf/confmodule

kver=`uname -r|cut -d. -f 1,2`

# Note that raidtools2 requires patching on older kernels

if [ $kver = '2.0' -o $kver = '2.1' -o $kver = '2.2' ]; then

  if ! grep -q '^unused devices:' /proc/mdstat &> /dev/null
  then
  
    db_input high raidtools2/nosupport || true
    db_go
  
    db_get raidtools2/nosupport
  
    if [ ! "$RET" = "true" ]; then
  
      STOP=1
  
    fi
  
  fi

fi

# If the user has chosen not to install raidtools2, don't do the rest

if [ ! "$STOP" = 1 ]; then

  if [ -f /etc/mdtab ]; then

    # Make a note about old RAID arrays

    db_input high raidtools2/oldraid || true
    db_go

  fi

  # Note about the raid2 init script

  if [ -f /etc/rcS.d/S25raid2 ]; then

    db_input low raidtools2/init || true
    db_go

  fi

fi