From 5e4d556eaff4db9b1fc80e0fff39883d01a10b9a Mon Sep 17 00:00:00 2001 From: Bert Burgemeister Date: Fri, 15 Jan 2010 09:33:22 +0100 Subject: [PATCH] s/possible_mount/points/usable_mount_points/ Change of pokinom's config for better uniformity to monikop. --- doc/monikop.muse | 2 +- fsck-pokinom | 4 ++-- pokinom | 4 ++-- pokinom.config | 2 +- pokinom.config.example | 2 +- test/pokinom.config.test | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/monikop.muse b/doc/monikop.muse index 0484398..fe4f7c9 100644 --- a/doc/monikop.muse +++ b/doc/monikop.muse @@ -136,7 +136,7 @@ Things you want to change for Pokinom in =pokinom.config=: # Possible mount points. -@possible_mount_points = ( +@usable_mount_points = ( '/media/disk_1', '/media/disk_2', '/media/disk_3', diff --git a/fsck-pokinom b/fsck-pokinom index c7c11a0..7110405 100755 --- a/fsck-pokinom +++ b/fsck-pokinom @@ -12,7 +12,7 @@ if ($ARGV[0]) { # Settings ######################################## # Possible mount points -my @possible_mount_points; +my @usable_mount_points; # Other settings from $pokinom_config, not used here. my $path_under_mount_point; @@ -48,7 +48,7 @@ if (qx(whoami) eq "bertb\n") { # Find checkable (i.e. mounted) disks my @raw_mount_points = grep (s/\S+ on (.*) type .*/$1/, qx/mount/); chomp @raw_mount_points; - my @sources = intersection @raw_mount_points, @possible_mount_points; + my @sources = intersection @raw_mount_points, @usable_mount_points; print "SOURCES:\n"; print @sources; map { diff --git a/pokinom b/pokinom index f3b7dc6..074e92b 100755 --- a/pokinom +++ b/pokinom @@ -29,7 +29,7 @@ if ($ARGV[0]) { # Settings ######################################## # Possible mount points. Must be unique in their tails after rightmost /. -my @possible_mount_points; +my @usable_mount_points; # Directory relative to a mount point where new data resides. # Must agree with Monikop's setting. @@ -166,7 +166,7 @@ $SIG{TERM} = 'restore_terminal_and_die'; # Find usable (i.e. mounted) sources my @raw_mount_points = grep (s/\S+ on (.*) type .*/$1/, qx/mount/); chomp @raw_mount_points; -my @sources = intersection @raw_mount_points, @possible_mount_points; +my @sources = intersection @raw_mount_points, @usable_mount_points; debug_print "SOURCES:\n"; debug_print @sources; diff --git a/pokinom.config b/pokinom.config index d042621..f366ff9 100644 --- a/pokinom.config +++ b/pokinom.config @@ -3,7 +3,7 @@ # Settings ######################################## # Possible mount points. Must be unique in their tails after rightmost /. -@possible_mount_points = ( +@usable_mount_points = ( '/media/platte_01', '/media/platte_02', '/media/platte_03', diff --git a/pokinom.config.example b/pokinom.config.example index 0f63edc..acff32e 100644 --- a/pokinom.config.example +++ b/pokinom.config.example @@ -5,7 +5,7 @@ # Copy this file to pokinom.config and adapt it to your needs. ############################################################## # Possible mount points. Must be unique in their tails after rightmost /. -@possible_mount_points = ( +@usable_mount_points = ( '/media/disk_1', '/media/disk_2', '/media/disk_3', diff --git a/test/pokinom.config.test b/test/pokinom.config.test index 0f63edc..acff32e 100644 --- a/test/pokinom.config.test +++ b/test/pokinom.config.test @@ -5,7 +5,7 @@ # Copy this file to pokinom.config and adapt it to your needs. ############################################################## # Possible mount points. Must be unique in their tails after rightmost /. -@possible_mount_points = ( +@usable_mount_points = ( '/media/disk_1', '/media/disk_2', '/media/disk_3', -- 2.11.4.GIT