File: partconf-hook.sh

package info (click to toggle)
mdcfg 1.63
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,388 kB
  • sloc: sh: 380; makefile: 7
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