blob: 8f17e33d1c04faa7faa360f654538d0770e1a753 (
plain)
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
27
28
29
30
31
32
|
#!/bin/bash
depend_procedure core base
var_OPTS_STRING="o:"
var_ARGS_USAGE="-o process/rollback: Operation: process the blockdevice layer or roll it back?"
process_args ()
{
if [ "$1" = '-o' ]
then
[ "$2" != process -a "$2" != rollback ] && die_error "You must specify 'process' or 'rollback'"
OPERATION=$2
else
usage
exit 5
fi
}
start_process ()
{
[ -z "$OPERATION" ] && usage && exit 5
if [ "$OPERATION" = process ]
then
process_disks
process_filesystems
elif [ "$OPERATION" = rollback ]
then
rollback_filesystems
fi
}
|