From: Nicolas Boisselier Date: Sat, 25 Feb 2017 19:27:57 +0000 (+0000) Subject: ip-move X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=11bfd4fc99566163757903d775c9936a1ba8d492;p=nb.git ip-move --- diff --git a/bin/ovh-api b/bin/ovh-api index 1f5bc001..3c6348a9 100755 --- a/bin/ovh-api +++ b/bin/ovh-api @@ -69,7 +69,7 @@ auth() if @KEY < 3; # Options sql() if $Opt{sql}; -ip2local($Opt{ip2local}) if $Opt{ip2local}; +ip_move($Opt{'ip-move'}) if $Opt{'ip-move'}; # Query query(); @@ -90,7 +90,7 @@ sub ips() { } `ifconfig`; } -sub ip2local { +sub ip_move { require Sys::Hostname; my ($ip) = @_; @@ -452,7 +452,7 @@ $NAME - Script to query ovh's api option[method|m=s] Method (default: GET) option[sql] Produce sql to update a database - option[ip2local=s] Move IP to local + option[ip-move=s] Move IP to local option[verbose|v+] Verbose mode: increase the verbosity level. option[debug+] Debug mode: increase the verbosity level.