File: postinst

package info (click to toggle)
raidtools 0.42-21
  • links: PTS
  • area: main
  • in suites: potato
  • size: 400 kB
  • ctags: 128
  • sloc: ansic: 2,056; makefile: 137; sh: 85
file content (26 lines) | stat: -rw-r--r-- 499 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
#! /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

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 raid start 50 0 6 . start 25 S . > /dev/null
fi