File: mdadm

package info (click to toggle)
libblockdev 2.20-7%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,908 kB
  • sloc: ansic: 16,376; python: 8,239; makefile: 560; sh: 487
file content (18 lines) | stat: -rwxr-xr-x 313 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

echo "$@"|grep -- "--brief" &>/dev/null
is_brief=$?

if [ $is_brief -eq 0 ]; then
    cat <<EOF
ARRAY /dev/md126 UUID=9ac5ba17:b1a6f4ab:2f96142c:bdc740e7
EOF
else
    cat <<EOF
MD_LEVEL=raid1
MD_DEVICES=2
MD_UUID=9ac5ba17:b1a6f4ab:2f96142c:bdc740e7
MD_UPDATE_TIME=1164351910
MD_EVENTS=1287623
EOF
fi