summaryrefslogtreecommitdiff
path: root/templates/add
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-01-25 11:33:39 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-01-25 11:33:39 -0800
commit6b267c07fc514899bb0e1320348d9b566c816de9 (patch)
tree75fd480c63ed9af6f8ecedb5e0d0a0ba9fd0d677 /templates/add
parentffca730c199f67b2af85d75af61fdd214bbfed4e (diff)
downloadvyatta-op-6b267c07fc514899bb0e1320348d9b566c816de9.tar.gz
vyatta-op-6b267c07fc514899bb0e1320348d9b566c816de9.zip
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 <image-name>".
Diffstat (limited to 'templates/add')
-rw-r--r--templates/add/system/image/node.def1
-rw-r--r--templates/add/system/image/node.tag/node.def5
-rw-r--r--templates/add/system/node.def1
3 files changed, 7 insertions, 0 deletions
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 '<ISO_file> <ISO_URL>'
+
+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