sub web_rename_device { my $from_name = cgi_param ('from_name'); my $to_name = cgi_param ('to_name'); # Run a built in script to rename devices config_rename_device ($from_name, $to_name); return; }