diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-01-11 17:05:26 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-01-11 17:05:26 -0800 |
commit | ff11c68efa6fac9a20ae62f0d7049b6e60ed9c4f (patch) | |
tree | d2fd80d878454580f5f103f2d8a7b9e5644d9bca /templates | |
parent | 094d5a5f9dcc47d3197da46ebe4b67ebe7ce2eb0 (diff) | |
download | vyatta-op-ff11c68efa6fac9a20ae62f0d7049b6e60ed9c4f.tar.gz vyatta-op-ff11c68efa6fac9a20ae62f0d7049b6e60ed9c4f.zip |
Add image name completion for two system image commands.
The two commands are: "set system image default-boot" and
"delete system image".
Diffstat (limited to 'templates')
-rw-r--r-- | templates/delete/system/image/node.tag/node.def | 10 | ||||
-rw-r--r-- | templates/set/system/image/default-boot/node.def | 6 | ||||
-rw-r--r-- | templates/set/system/image/default-boot/node.tag/node.def | 10 |
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 |