summaryrefslogtreecommitdiff
path: root/templates/rename/system
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-05-28 17:43:48 -0700
committerStig Thormodsrud <stig@vyatta.com>2010-05-28 17:43:48 -0700
commit117041e7a7495dfdade0f4c94f38a5fcb1bda7b2 (patch)
tree9e4800b798f85986de0365a0c853b26ba0165fc6 /templates/rename/system
parentb1f7a5e6af6614935d608cd52bc7df7eb8e074b2 (diff)
parentce660cba1408ac05795b19bc5adaf605b470c34f (diff)
downloadvyatta-op-117041e7a7495dfdade0f4c94f38a5fcb1bda7b2.tar.gz
vyatta-op-117041e7a7495dfdade0f4c94f38a5fcb1bda7b2.zip
Merge branch 'larkspur' of http://git.vyatta.com/vyatta-op into larkspur
Diffstat (limited to 'templates/rename/system')
-rw-r--r--templates/rename/system/image/node.def1
-rw-r--r--templates/rename/system/image/node.tag/node.def6
-rw-r--r--templates/rename/system/image/node.tag/node.tag/node.def7
-rw-r--r--templates/rename/system/node.def1
4 files changed, 15 insertions, 0 deletions
diff --git a/templates/rename/system/image/node.def b/templates/rename/system/image/node.def
new file mode 100644
index 0000000..00e9c81
--- /dev/null
+++ b/templates/rename/system/image/node.def
@@ -0,0 +1 @@
+help: Re-name a system image.
diff --git a/templates/rename/system/image/node.tag/node.def b/templates/rename/system/image/node.tag/node.def
new file mode 100644
index 0000000..eb25def
--- /dev/null
+++ b/templates/rename/system/image/node.tag/node.def
@@ -0,0 +1,6 @@
+help: System image to rename.
+
+allowed:
+ local -a images ;
+ images=`/opt/vyatta/bin/vyatta-boot-image.pl --list`
+ echo -n $images
diff --git a/templates/rename/system/image/node.tag/node.tag/node.def b/templates/rename/system/image/node.tag/node.tag/node.def
new file mode 100644
index 0000000..1f94c57
--- /dev/null
+++ b/templates/rename/system/image/node.tag/node.tag/node.def
@@ -0,0 +1,7 @@
+help: New name for system image.
+
+run:
+ old=$4
+ new=$5
+ sudo /opt/vyatta/bin/rename-image.pl --old_name $old --new_name $new
+
diff --git a/templates/rename/system/node.def b/templates/rename/system/node.def
new file mode 100644
index 0000000..1d86fc2
--- /dev/null
+++ b/templates/rename/system/node.def
@@ -0,0 +1 @@
+help: Re-name a system object.