From 6b267c07fc514899bb0e1320348d9b566c816de9 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Mon, 25 Jan 2010 11:33:39 -0800 Subject: Re-factor image installation commands. Separate initialy installing a system in image mode and adding a new image to a previously installed system into two independent commands. The initial system installation command is "install-image" and the command to add a new image is "add system image ". --- templates/add/system/image/node.def | 1 + templates/add/system/image/node.tag/node.def | 5 +++++ templates/add/system/node.def | 1 + templates/install-image/node.tag/node.def | 5 ----- 4 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 templates/add/system/image/node.def create mode 100644 templates/add/system/image/node.tag/node.def create mode 100644 templates/add/system/node.def delete mode 100644 templates/install-image/node.tag/node.def diff --git a/templates/add/system/image/node.def b/templates/add/system/image/node.def new file mode 100644 index 0000000..5583a40 --- /dev/null +++ b/templates/add/system/image/node.def @@ -0,0 +1 @@ +help: Add a new image to the system diff --git a/templates/add/system/image/node.tag/node.def b/templates/add/system/image/node.tag/node.def new file mode 100644 index 0000000..f5bdf6a --- /dev/null +++ b/templates/add/system/image/node.tag/node.def @@ -0,0 +1,5 @@ +help: File name or URL of system image file to be installed + +allowed: echo -n ' ' + +run: sudo /opt/vyatta/sbin/install-image "$4" diff --git a/templates/add/system/node.def b/templates/add/system/node.def new file mode 100644 index 0000000..71af888 --- /dev/null +++ b/templates/add/system/node.def @@ -0,0 +1 @@ +help: Add an item to a system facility diff --git a/templates/install-image/node.tag/node.def b/templates/install-image/node.tag/node.def deleted file mode 100644 index a2f8107..0000000 --- a/templates/install-image/node.tag/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: File name or URL of system image file to be installed - -allowed: echo -n ' ' - -run: sudo /opt/vyatta/sbin/install-image "$2" -- cgit v1.2.3