summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/delete/system/image/node.tag/node.def10
-rw-r--r--templates/set/system/image/default-boot/node.def6
-rw-r--r--templates/set/system/image/default-boot/node.tag/node.def10
3 files changed, 24 insertions, 2 deletions
diff --git a/templates/delete/system/image/node.tag/node.def b/templates/delete/system/image/node.tag/node.def
new file mode 100644
index 0000000..2c26bf4
--- /dev/null
+++ b/templates/delete/system/image/node.tag/node.def
@@ -0,0 +1,10 @@
+help: Default boot image name
+
+allowed:
+ local -a images ;
+ images=`/opt/vyatta/bin/vyatta-boot-image.pl --list`
+ echo -n $images
+
+run:
+ image=$4
+ sudo /opt/vyatta/bin/vyatta-boot-image.pl --del $image
diff --git a/templates/set/system/image/default-boot/node.def b/templates/set/system/image/default-boot/node.def
index c5848a4..b0e3290 100644
--- a/templates/set/system/image/default-boot/node.def
+++ b/templates/set/system/image/default-boot/node.def
@@ -1,2 +1,4 @@
-help: Set the system default boot image
-run: sudo /opt/vyatta/bin/vyatta-boot-image.pl --select
+help: Set default image to boot.
+
+run:
+ sudo /opt/vyatta/bin/vyatta-boot-image.pl --select
diff --git a/templates/set/system/image/default-boot/node.tag/node.def b/templates/set/system/image/default-boot/node.tag/node.def
new file mode 100644
index 0000000..9a37a55
--- /dev/null
+++ b/templates/set/system/image/default-boot/node.tag/node.def
@@ -0,0 +1,10 @@
+help: Default boot image name
+
+allowed:
+ local -a images ;
+ images=`/opt/vyatta/bin/vyatta-boot-image.pl --list`
+ echo -n $images
+
+run:
+ image=$5
+ sudo /opt/vyatta/bin/vyatta-boot-image.pl --select $image