diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-04-23 12:48:18 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-04-23 12:48:18 -0700 |
commit | 1d0cd8922bab1d8d53b886b8287baeb22979d087 (patch) | |
tree | f01a00eb1e79279a06395a9d718508015da3a18b /templates/update | |
parent | 17e28be540ef15c57d11b07cb8b9ad1365163078 (diff) | |
download | vyatta-op-1d0cd8922bab1d8d53b886b8287baeb22979d087.tar.gz vyatta-op-1d0cd8922bab1d8d53b886b8287baeb22979d087.zip |
Initial addition of image op mode tools
Diffstat (limited to 'templates/update')
-rw-r--r-- | templates/update/config/node.def | 1 | ||||
-rw-r--r-- | templates/update/config/node.tag/from/node.def | 1 | ||||
-rw-r--r-- | templates/update/config/node.tag/from/node.tag/node.def | 10 | ||||
-rw-r--r-- | templates/update/config/node.tag/node.def | 10 |
4 files changed, 22 insertions, 0 deletions
diff --git a/templates/update/config/node.def b/templates/update/config/node.def new file mode 100644 index 0000000..4bf41da --- /dev/null +++ b/templates/update/config/node.def @@ -0,0 +1 @@ +help: Update image config diff --git a/templates/update/config/node.tag/from/node.def b/templates/update/config/node.tag/from/node.def new file mode 100644 index 0000000..413f817 --- /dev/null +++ b/templates/update/config/node.tag/from/node.def @@ -0,0 +1 @@ +help: Image to update from diff --git a/templates/update/config/node.tag/from/node.tag/node.def b/templates/update/config/node.tag/from/node.tag/node.def new file mode 100644 index 0000000..d540b9c --- /dev/null +++ b/templates/update/config/node.tag/from/node.tag/node.def @@ -0,0 +1,10 @@ +help: Image to update from +allowed: reply=( $(compgen -f /live/image/boot/ | grep -v grub) ) + for i in `seq 0 $[${#reply[@]}-1]`; do + file=${reply[$i]} + reply[$i]=${file/#\/live\/image\/boot\//} + reply[$i]="${reply[$i]}://" + done + reply+=( "running://" ) + echo "${reply[*]}" +run: sudo ${vyatta_sbindir}/vyatta-image-tools.pl --update $3 $5 diff --git a/templates/update/config/node.tag/node.def b/templates/update/config/node.tag/node.def new file mode 100644 index 0000000..8a4a2eb --- /dev/null +++ b/templates/update/config/node.tag/node.def @@ -0,0 +1,10 @@ +help: Image to update +allowed: reply=( $(compgen -f /live/image/boot/ | grep -v grub) ) + for i in `seq 0 $[${#reply[@]}-1]`; do + file=${reply[$i]} + reply[$i]=${file/#\/live\/image\/boot\//} + reply[$i]="${reply[$i]}://" + done + reply+=( "running://" ) + echo "${reply[*]}" +run: sudo ${vyatta_sbindir}/vyatta-image-tools.pl --updateone $3 |