summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakups
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-03-18 19:23:44 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-03-18 19:23:44 +0000
commit2b7e2cebe882c914ee00da9bc75980bda9ecba53 (patch)
tree007ee6c9432dc1901c9ff50b0cad23e6dd5d148c /perl-install/standalone/drakups
parentef019637f3922470e355405514dbc37ef8baf7c7 (diff)
downloaddrakx-backup-do-not-use-2b7e2cebe882c914ee00da9bc75980bda9ecba53.tar
drakx-backup-do-not-use-2b7e2cebe882c914ee00da9bc75980bda9ecba53.tar.gz
drakx-backup-do-not-use-2b7e2cebe882c914ee00da9bc75980bda9ecba53.tar.bz2
drakx-backup-do-not-use-2b7e2cebe882c914ee00da9bc75980bda9ecba53.tar.xz
drakx-backup-do-not-use-2b7e2cebe882c914ee00da9bc75980bda9ecba53.zip
(add_device_wizard) fix device path when manually adding an UPS (#12290)
Diffstat (limited to 'perl-install/standalone/drakups')
-rwxr-xr-xperl-install/standalone/drakups5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/standalone/drakups b/perl-install/standalone/drakups
index a5a0c9206..488937fb8 100755
--- a/perl-install/standalone/drakups
+++ b/perl-install/standalone/drakups
@@ -149,7 +149,10 @@ Please fill in its name, its driver and its port.", $model, $vendor);
help => N("The port on which is connected your ups") },
];
},
- next => "end",
+ post => sub {
+ $port = '/dev/' . $port if $port !~ m!/dev/!;
+ return 'end',
+ },
},
end => {
name => sub {