search for: check_tool

Displaying 5 results from an estimated 5 matches for "check_tool".

Did you mean: check_tools
2024 Mar 19
2
Bug#1067151: xen-utils-common: vif-openvswitch ignores MTU
...itch does not. I added it in, here's the diff-c and the full fixed file is also attached. *** vif-openvswitch.orig 2024-03-19 11:53:13.000000000 +0200 --- vif-openvswitch 2024-03-19 11:56:17.000000000 +0200 *************** *** 89,94 **** --- 89,95 ---- add|online) check_tools setup_virtual_bridge_port $dev + set_mtu "$bridge" "$dev" "$type_if" add_to_openvswitch $dev ;; -- Aleksi Suhonen () ascii ribbon campaign /\ support plain text e-mail -------------- next part -------------- #!/bin/bash...
2013 Apr 24
7
[PATCH] hotplug/Linux: add iscsi block hotplug script
...he hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. + +remove_label() +{ + echo $1 | sed "s/^\("$2"\)//" +} + +check_tools() +{ + if ! type iscsiadm > /dev/null 2>&1; then + echo "Unable to find iscsiadm tool" + return 1 + fi + if [ "$multipath" = "y" ] && ! type multipath > /dev/null 2>&1; then + echo "Unable to find multipat...
2015 Mar 31
0
[PATCH] WIP: New virt-dib tool
...$envvar ;; + esac + done +fi + +cmd=$1 +shift +$cmd \"$@\" +" in + write_script (destdir // "fake-bin" // "sudo") fake_sudo; + (* Pick dib-run-parts from the host, if available, otherwise put + * a fake executable which will error out if used. + *) + if check_tool ~param:"--list ." "dib-run-parts" then ( + let lines = external_command ~prog (sprintf "which dib-run-parts") in + let lines = List.filter (fun x -> x <> "") lines in + let loc = + match lines with + | [] -> error (f_"empty...
2015 May 29
0
[PATCH v3] RFC: New virt-dib tool
...es in + (match lines with + | [] -> raise (Tool_not_found tool) + | [x] -> x + | x :: _ -> + error (f_"output of `which %s` contains more than one line:\n%s") + tool (String.concat "\n" lines)) + +let run_command cmd = + ignore (external_command cmd) + +let check_tool tool = + try ignore (which tool); true + with Tool_not_found _ -> false + +let require_tool tool = + try ignore (which tool) + with Tool_not_found tool -> + error (f_"%s needed but not found") tool + +let do_cp src dest = + let cmd = sprintf "cp -t %s -a %s" (Filen...
2015 Jun 16
2
[PATCH v4] RFC: New tool: virt-dib
...ines in + match lines with + | [] -> raise (Tool_not_found tool) + | [x] -> x + | x :: _ -> + error (f_"output of `which %s` contains more than one line:\n%s") + tool (String.concat "\n" lines) + +let run_command cmd = + ignore (external_command cmd) + +let check_tool tool = + try ignore (which tool); true + with Tool_not_found _ -> false + +let require_tool tool = + try ignore (which tool) + with Tool_not_found tool -> + error (f_"%s needed but not found") tool + +let do_cp src destdir = + run_command (sprintf "cp -t %s -a %s"...