summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-06-06 04:54:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-06-06 04:54:02 +0000
commitb12c324e2e8892a50b51336febb664c9c441b37c (patch)
tree614ff5621f01668c9dbe2abe89eec2a060048072 /perl-install/standalone
parent809bc2de38d8c976014c92193c7c2b43c9c31849 (diff)
downloaddrakx-backup-do-not-use-b12c324e2e8892a50b51336febb664c9c441b37c.tar
drakx-backup-do-not-use-b12c324e2e8892a50b51336febb664c9c441b37c.tar.gz
drakx-backup-do-not-use-b12c324e2e8892a50b51336febb664c9c441b37c.tar.bz2
drakx-backup-do-not-use-b12c324e2e8892a50b51336febb664c9c441b37c.tar.xz
drakx-backup-do-not-use-b12c324e2e8892a50b51336febb664c9c441b37c.zip
nicer error
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/bootloader-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config
index 42bf12fa5..e167a5e54 100755
--- a/perl-install/standalone/bootloader-config
+++ b/perl-install/standalone/bootloader-config
@@ -26,7 +26,7 @@ my %options = (
'no-initrd' => \ (my $no_initrd),
);
-GetOptions(%options) or die <<'EOF';
+GetOptions(%options) && $action or die <<'EOF';
usage: bootloader-config --action add-kernel (--image <vmlinuz> | --kernel-version <2.6.xxx>) [--label <...>] [--no-short-name] [--initrd-options <options>]
bootloader-config --action remove-kernel (--image <vmlinuz> | --kernel-version <2.6.xxx>)