summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-01-28 23:54:29 +0000
committerChris Wilson <chris+github@qwirx.com>2008-01-28 23:54:29 +0000
commit68da084d5923caaadfb2e51b021796c46bc22cb8 (patch)
tree7ce1f99d342437191353237acd73704c6c295be7 /lib
parent1afeacadd7303cd89ddc319fae1e20a8f82f9bb1 (diff)
Use @sysconfdir_expanded@ for default config file location.
Add some missing semicolons (optional but nicer). Reformat usage message for readability.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/raidfile/raidfile-config.in19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/raidfile/raidfile-config.in b/lib/raidfile/raidfile-config.in
index f1098adc..76b65ace 100755
--- a/lib/raidfile/raidfile-config.in
+++ b/lib/raidfile/raidfile-config.in
@@ -16,14 +16,17 @@ Setup raidfile config utility.
Bad command line parameters.
Usage:
- raidfile-config config-dir block-size dir0 [dir1 dir2]
+ raidfile-config config-dir block-size dir0 [dir1 dir2]
-config-dir usually /etc/box
-block-size must be a power of two, and usually the block or fragment size of your filing system
-dir0, dir1, dir2 are the directories used as the root of the raid file system
+Parameters:
+ config-dir is usually @sysconfdir_expanded@/box
+ block-size must be a power of two, and usually the block or
+ fragment size of your file system
+ dir0, dir1, dir2 are the directories used as the root of the raid
+ file system
-If only one directory is specified, then userland RAID is disabled. Specifying three directories
-enables it.
+If only one directory is specified, then userland RAID is disabled.
+Specifying three directories enables it.
__E
exit(1);
@@ -57,7 +60,7 @@ while(1)
# check that it doesn't already exist
if(-f $conf)
{
- die "$conf already exists. Delete and try again"
+ die "$conf already exists. Delete and try again";
}
# create directory
@@ -72,7 +75,7 @@ if($#dirs == 0)
{
$dirs[1] = $dirs[0];
$dirs[2] = $dirs[0];
- print "WARNING: userland RAID is disabled.\n"
+ print "WARNING: userland RAID is disabled.\n";
}
# write the file