[Ovirt-devel] [PATCH node] Adds a "Save" option to save the configuration.
Darryl L. Pierce
dpierce at redhat.com
Fri Nov 14 21:33:50 UTC 2008
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
scripts/ovirt-config-networking | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking
index 2f8363c..0c34561 100755
--- a/scripts/ovirt-config-networking
+++ b/scripts/ovirt-config-networking
@@ -66,7 +66,7 @@ function configure_interface
function setup_menu
{
NICS=$(hal-device | awk '/net.interface/ {match($0, "= '"'"'(.*)'"'"' ", nic); printf("%s ", nic[1]); }')
- NICS="$NICS Quit"
+ NICS="$NICS Save Quit"
PS3="Please select a network interface to configure:"
}
@@ -80,7 +80,8 @@ select NIC in $NICS
do
printf "\n"
case "$NIC" in
- "Quit") break ;;
+ "Save") break ;;
+ "Quit") exit 0 ;;
*) configure_interface $NIC $IFACE_NUMBER ;;
esac
setup_menu
@@ -94,4 +95,3 @@ printf "save\n" >> /var/tmp/config-augtool
augtool < /var/tmp/config-augtool
service network restart
} > $CONFIG_LOG_FILE 2>> $CONFIG_LOG_FILE
-
--
1.5.6.5
More information about the ovirt-devel
mailing list