File: do_option

package info (click to toggle)
partman-md 20
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 284 kB
  • ctags: 3
  • sloc: sh: 325; makefile: 28
file content (14 lines) | stat: -rwxr-xr-x 217 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

dev=$2
id=$3

cd $dev

[ -d $dev/$id ] || mkdir $dev/$id

echo raid >$dev/$id/method
if [ -f $dev/$id/use_filesystem ]; then
    rm $dev/$id/use_filesystem
fi
[ ! -f $dev/$id/format ] || rm $dev/$id/format