File: partconf-hook.sh

package info (click to toggle)
mdcfg 1.28
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,152 kB
  • ctags: 14
  • sloc: sh: 373; makefile: 33
file content (13 lines) | stat: -rwxr-xr-x 149 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

[ "$1" ] || exit 0

DEVICE=$(echo $1 | sed -e "s:/dev/::")

echo $DEVICE

if grep -q "$DEVICE" /proc/mdstat; then
	exit 1
else
	exit 0
fi