From 92ec2f6f60698407b04c2ebff54a83d9d40b795a Mon Sep 17 00:00:00 2001 From: erkin Date: Thu, 10 Mar 2022 17:21:51 +0300 Subject: loadkey: T3865: Deprecate `loadkey` --- scripts/vyatta-load-user-key.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/vyatta-load-user-key.pl') diff --git a/scripts/vyatta-load-user-key.pl b/scripts/vyatta-load-user-key.pl index 4655fbad..e78ebc35 100755 --- a/scripts/vyatta-load-user-key.pl +++ b/scripts/vyatta-load-user-key.pl @@ -157,6 +157,10 @@ sub getkeys { } } +print "Warning: `loadkey' command has been deprecated and will be removed in a future version.\n"; +print "Instead, use the op-mode command `generate public-key-command' to generate commands for manual addition:\n"; +print "\$ generate public-key-command name path \n\n"; + die "Incorrect number of arguments, expect\n", " loadkey user filename|url\n" unless ($#ARGV == 1); -- cgit v1.2.3