recipes: Refresh guestfish recipes.
[libguestfs.git] / recipes / product-name.sh
diff --git a/recipes/product-name.sh b/recipes/product-name.sh
new file mode 100755 (executable)
index 0000000..7dcc7da
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -
+
+eval "$(guestfish --ro -a "$1" --i --listen)"
+root="$(guestfish --remote inspect-get-roots)"
+guestfish --remote inspect-get-product-name "$root"
+guestfish --remote exit