File: postinst

package info (click to toggle)
mdutils 0.35-27
  • links: PTS
  • area: main
  • in suites: potato
  • size: 156 kB
  • ctags: 74
  • sloc: ansic: 593; makefile: 114; sh: 51
file content (32 lines) | stat: -rw-r--r-- 703 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
#! /bin/sh

set -e
cd /dev

# found="`ls -l 2>/dev/null | perl -ne '
# 	print if m/^b\S+\s+\d+\s+\S+\s+\S+\s+999,\s+0\s/;
# '`"
# if [ "$found" ]; then exit 0; fi

if [ ! -e md0 -o ! -e md1 -o ! -e md1 -o ! -e md2 -o ! -e md3 ]; then

MAKEDEV md

fi

update-modules

kver=`uname -r`
if `dpkg --compare-versions $kver ge 2.1.63`; then
    echo "You're using a kernel version higher than 2.1.62.  You should use the"
    echo "raidtools package instead of mdutils."
fi

if [ "$1" = "configure" ]
then
    #
    # This should really be stop 98 0 6 . start 25 S . but then raid
    # would stop before filesystems are umounted.  Ugh.
    #
    update-rc.d mdutils start 50 0 6 . start 25 S . > /dev/null
fi